note 107145 added to function.curl-setopt
| From: | AdamMonsen at osu1 dot php dot net | Date: | Wed, 11 Jan 2012 00:19:19 +0000 |
| Subject: | note 107145 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185558@lists.php.net to get a copy of this message | ||
This may seem obvious, but if you want the Content-Type header set to
"multipart/form-data" (when CURLOPT_POSTFIELDS is an array), CURLOPT_POST *must* be set to
FALSE. If you set CURLOPT_POSTFIELDS to an array *and* have CURLOPT_POST set to TRUE, Content-Length
will be -1 and most sane servers will reject the request.
----
Server IP: 69.147.83.197
Probable Submitter: 67.183.136.182
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/107145
Del: integrated -- https://master.php.net/note/delete/107145/integrated
Del: useless -- https://master.php.net/note/delete/107145/useless
Del: bad code -- https://master.php.net/note/delete/107145/bad+code
Del: spam -- https://master.php.net/note/delete/107145/spam
Del: non-english -- https://master.php.net/note/delete/107145/non-english
Del: in docs -- https://master.php.net/note/delete/107145/in+docs
Del: other reasons-- https://master.php.net/note/delete/107145
Reject -- https://master.php.net/note/reject/107145
Search -- https://master.php.net/manage/user-notes.php