tibberous Posted October 6, 2007 Share Posted October 6, 2007 cURL keeps sending the header: HTTP_EXPECT = 100-continue I'm thinking this is causing an error on the server I am interfacing with, because I get http code 417: The expectation given in the Expect request-header could not be fulfilled by the server. Is there some way I can disable this? I'm pretty sure it would work fine without it - Firefox doesn't send it and it works. Link to comment https://forums.phpfreaks.com/topic/72070-is-there-a-way-to-get-curl-to-stop-sending-a-header/ Share on other sites More sharing options...
d.shankar Posted October 6, 2007 Share Posted October 6, 2007 Try curl_setopt($ch,CURLOPT_HEADER,0); Link to comment https://forums.phpfreaks.com/topic/72070-is-there-a-way-to-get-curl-to-stop-sending-a-header/#findComment-363173 Share on other sites More sharing options...
tibberous Posted October 6, 2007 Author Share Posted October 6, 2007 Doesn't work. Either does: curl_setopt($ch, CURLOPT_HTTPHEADER, array("HTTP_EXPECT: 0")); curl_setopt($ch, CURLOPT_HTTPHEADER, array("HTTP_EXPECT: ")); curl_setopt($ch, CURLOPT_HTTPHEADER, array("HTTP_EXPECT:")); Problem is that cURL is sending a file upload. If it wasn't for that I wouldn't use cURL at all and just use sockets. Link to comment https://forums.phpfreaks.com/topic/72070-is-there-a-way-to-get-curl-to-stop-sending-a-header/#findComment-363176 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.