note 106891 added to function.curl-setopt

From: Date: Fri, 16 Dec 2011 09:39:40 +0000
Subject: note 106891 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-185084@lists.php.net to get a copy of this message
Sending a post file upload across a squid proxy, the request was rejected by the proxy. In the error page returned it provided among other possible causes:"Expect:" feature is being asked from a HTTP/one.zero. Solution: Add the option <?php curl_setopt($cl,CURLOPT_HTTPHEADER,array("Expect:")); ?>. This will remove the expect http header. ---- Server IP: 69.147.83.197 Probable Submitter: 195.48.115.8 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/106891 Del: integrated -- https://master.php.net/note/delete/106891/integrated Del: useless -- https://master.php.net/note/delete/106891/useless Del: bad code -- https://master.php.net/note/delete/106891/bad+code Del: spam -- https://master.php.net/note/delete/106891/spam Del: non-english -- https://master.php.net/note/delete/106891/non-english Del: in docs -- https://master.php.net/note/delete/106891/in+docs Del: other reasons-- https://master.php.net/note/delete/106891 Reject -- https://master.php.net/note/reject/106891 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185084) next »