note 116371 added to function.curl-setopt
| From: | nabikaz at gmail dot com | Date: | Mon, 22 Dec 2014 02:26:59 +0000 |
| Subject: | note 116371 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201234@lists.php.net to get a copy of this message | ||
@zsalab
One line of the code in this comment:
http://php.net/manual/en/function.curl-setopt.php#102121
Must be changed to this:
preg_match('/Location:(.*?)\n/i', $header, $matches);
Needed to "i" for case insensitive because some time was "location".
----
Server IP: 72.52.91.14
Probable Submitter: 199.201.126.207
----
Manual Page -- http://php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/116371
Del: integrated -- https://master.php.net/note/delete/116371/integrated
Del: useless -- https://master.php.net/note/delete/116371/useless
Del: bad code -- https://master.php.net/note/delete/116371/bad+code
Del: spam -- https://master.php.net/note/delete/116371/spam
Del: non-english -- https://master.php.net/note/delete/116371/non-english
Del: in docs -- https://master.php.net/note/delete/116371/in+docs
Del: other reasons-- https://master.php.net/note/delete/116371
Reject -- https://master.php.net/note/reject/116371
Search -- https://master.php.net/manage/user-notes.php