note 113190 added to function.curl-multi-getcontent
| From: | butesa at freenet dot de | Date: | Tue, 10 Sep 2013 20:51:40 +0000 |
| Subject: | note 113190 added to function.curl-multi-getcontent | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196217@lists.php.net to get a copy of this message | ||
You can use curl_multi_getcontent() on a curl handle that was executed with curl_exec() (and not
added to a multi handle).
However, this is not very useful because curl_multi_getcontent() will return the same as curl_exec()
then.
<?php
$ch = curl_init('http://www.example.com/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$a = curl_exec($ch);
$b = curl_multi_getcontent($ch);
var_dump($a === $b);
curl_close($ch);
?>
will return:
bool(true)
----
Server IP: 87.106.1.137
Probable Submitter: 87.147.37.64
----
Manual Page -- http://php.net/manual/en/function.curl-multi-getcontent.php
Edit -- https://master.php.net/note/edit/113190
Del: integrated -- https://master.php.net/note/delete/113190/integrated
Del: useless -- https://master.php.net/note/delete/113190/useless
Del: bad code -- https://master.php.net/note/delete/113190/bad+code
Del: spam -- https://master.php.net/note/delete/113190/spam
Del: non-english -- https://master.php.net/note/delete/113190/non-english
Del: in docs -- https://master.php.net/note/delete/113190/in+docs
Del: other reasons-- https://master.php.net/note/delete/113190
Reject -- https://master.php.net/note/reject/113190
Search -- https://master.php.net/manage/user-notes.php