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. Quote 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); Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.