note 97452 added to ref.curl
| From: | arturm at union dot com dot pl | Date: | Tue, 20 Apr 2010 16:03:15 +0000 |
| Subject: | note 97452 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168453@lists.php.net to get a copy of this message | ||
One of the reasons why curl can be slow is that it appends header "Expect: 100-continue".
Try this fix:
$headers = array(
"Expect:",
// more headers here
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
----
Server IP: 69.147.83.197
Probable Submitter: 83.24.106.113
----
Manual Page -- http://www.php.net/manual/en/ref.curl.php
Edit -- https://master.php.net/note/edit/97452
Del: integrated -- https://master.php.net/note/delete/97452/integrated
Del: useless -- https://master.php.net/note/delete/97452/useless
Del: bad code -- https://master.php.net/note/delete/97452/bad+code
Del: spam -- https://master.php.net/note/delete/97452/spam
Del: non-english -- https://master.php.net/note/delete/97452/non-english
Del: in docs -- https://master.php.net/note/delete/97452/in+docs
Del: other reasons-- https://master.php.net/note/delete/97452
Reject -- https://master.php.net/note/reject/97452
Search -- https://master.php.net/manage/user-notes.php