I have a problem with a simple file upload post with cURL... I did it so many times but in this case I always get \"417 Expectation Failed\" from server. When I try to post
Can also be fixed using set opt header setting:
curl_setopt($curl,CURLOPT_HTTPHEADER,array("Expect: "));
http://www.khattam.info/417-expectation-failed-in-php-curl-while-submitting-multi-part-forms-2011-04-14.html
This happens when you are behind a proxy which is running in HTTP 1.1 mode where as the client is running in HTTP 1.0. In curl command line you can add --http1.0
in the arguments to solve the issue
add this to your lighttpd config: server.reject-expect-100-with-417 = "disable"
restart lighttpd. cheers :)