note 108137 added to function.curl-setopt
| From: | mw+php dot net at lw-systems dot de | Date: | Sat, 31 Mar 2012 18:45:25 +0000 |
| Subject: | note 108137 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186927@lists.php.net to get a copy of this message | ||
The description of the use of the CURLOPT_POSTFIELDS option should be emphasize, that using POST
with HTTP/1.1 with cURL implies the use of a "Expect: 100-continue" header. Some web
servers will not understand the handling of chunked transfer of post data.
To disable this behavior one must disable the use of the "Expect:" header with
curl_setopt($ch, CURLOPT_HTTPHEADER,array("Expect:"));
----
Server IP: 69.147.83.197
Probable Submitter: 93.196.197.45
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/108137
Del: integrated -- https://master.php.net/note/delete/108137/integrated
Del: useless -- https://master.php.net/note/delete/108137/useless
Del: bad code -- https://master.php.net/note/delete/108137/bad+code
Del: spam -- https://master.php.net/note/delete/108137/spam
Del: non-english -- https://master.php.net/note/delete/108137/non-english
Del: in docs -- https://master.php.net/note/delete/108137/in+docs
Del: other reasons-- https://master.php.net/note/delete/108137
Reject -- https://master.php.net/note/reject/108137
Search -- https://master.php.net/manage/user-notes.php