我有一個C客戶端,它使用libcurl通過HTTPS將xml數據包發送到Apache服務器。如何從Apache https服務器端通過腳本獲取https post請求的內容
客戶端代碼的某些部分:
curl_easy_init();
curl_easy_setopt(捲曲,CURLOPT_URL, 「https://example.com/test.php」);
curl_easy_setopt(捲曲,CURLOPT_POSTFIELDS,send_buf);
curl_easy_setopt(捲曲,CURLOPT_POSTFIELDSIZE,strlen的(send_buf));
curl_easy_setopt(捲曲,CURLOPT_POST,1L);
解析度= curl_easy_perform(捲曲);
send_buf的內容發送到https apache服務器(https://example.com/test.php),但在Apache服務器端,我怎樣才能使用test.php來獲取send_buf的內容?歡迎任何其他腳本。謝謝
任何示例代碼?
不明白爲什麼你問這句話,如果你沒將是很好「T。謝謝。 – Kev 2012-03-07 23:24:40