note 115454 added to function.curl-setopt
| From: | KlausSchneider | Date: | Fri, 25 Jul 2014 18:10:58 +0000 |
| Subject: | note 115454 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200055@lists.php.net to get a copy of this message | ||
Important note on option CURLOPT_CRLF in combination with setting CURLOPT_POSTFIELDS to an array:
Do _not_ set CURLOPT_CRLF to TRUE if you send 'multipart/form-data' content through
CURLOPT_POSTFIELDS; it won't work.
CURLOPT_CRLF = TRUE sets the line delimiters to be CR and LF both, but CURLOPT_POSTFIELDS will still
calculate the 'Content-length' header as if there was a single (!) line delimiter
character.
This breaks POSTing forms for most servers. In particular PHP will not be able to fill the $_POST
array under this circumstances.
----
Server IP: 213.172.110.14
Probable Submitter: 79.219.107.131
----
Manual Page -- http://php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/115454
Del: integrated -- https://master.php.net/note/delete/115454/integrated
Del: useless -- https://master.php.net/note/delete/115454/useless
Del: bad code -- https://master.php.net/note/delete/115454/bad+code
Del: spam -- https://master.php.net/note/delete/115454/spam
Del: non-english -- https://master.php.net/note/delete/115454/non-english
Del: in docs -- https://master.php.net/note/delete/115454/in+docs
Del: other reasons-- https://master.php.net/note/delete/115454
Reject -- https://master.php.net/note/reject/115454
Search -- https://master.php.net/manage/user-notes.php