note 111557 added to curl.examples
| From: | shashank at neupane dot com dot np | Date: | Mon, 04 Mar 2013 09:43:46 +0000 |
| Subject: | note 111557 added to curl.examples | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193790@lists.php.net to get a copy of this message | ||
to get the full webpages from head as well as body
$curl = curl_init('http://example.com');
curl_setopt($curl, CURLOPT_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($curl);
echo $result;
----
Server IP: 69.147.83.199
Probable Submitter: 202.94.66.28
----
Manual Page -- http://php.net/manual/en/curl.examples.php
Edit -- https://master.php.net/note/edit/111557
Del: integrated -- https://master.php.net/note/delete/111557/integrated
Del: useless -- https://master.php.net/note/delete/111557/useless
Del: bad code -- https://master.php.net/note/delete/111557/bad+code
Del: spam -- https://master.php.net/note/delete/111557/spam
Del: non-english -- https://master.php.net/note/delete/111557/non-english
Del: in docs -- https://master.php.net/note/delete/111557/in+docs
Del: other reasons-- https://master.php.net/note/delete/111557
Reject -- https://master.php.net/note/reject/111557
Search -- https://master.php.net/manage/user-notes.php