0
可能重複:
I am trying to make a POST request to a URL using Curl but getting this error?PHP後 - 請求實體太大
我試圖使用curl與包括一些XML做一個POST請求到服務器,但我米得到錯誤「請求實體太長」有人能告訴我我做錯了什麼?謝謝! :)
$url = 'http://web1.trueship.com/readyreturns/company/api.php/orders?key=xxxxxxxxxxxxxxxxxx&overwrite=true';
$curl = curl_init();
curl_setopt($curl, CURLOPT_HTTPHEADER, Array("&xml=".$encodedXml));
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, TRUE);
$result = curl_exec ($curl);
curl_close ($curl);
print $result;
http://stackoverflow.com/search?q=%5Bcurl%5D+Request+Entity+Too+Large – PeeHaa
你從外部服務或您的服務得到的迴應是給出這個迴應? –
@MikeBrant外部。 –