note 127386 added to book.curl
| From: | curlGod at main dot php dot net | Date: | Tue, 02 Aug 2022 07:44:02 +0000 |
| Subject: | note 127386 added to book.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219343@lists.php.net to get a copy of this message | ||
function getCurl($url){
$headerArray
=array("Content-type:application/json;","Accept:application/json");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_HTTPHEADER,$headerArray);
$output = curl_exec($ch);
curl_close($ch);
$output = json_decode($output,true);
return $output;
}
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.163 (proxied: 223.166.248.130)
----
Manual Page -- https://php.net/manual/en/book.curl.php
Edit -- https://main.php.net/note/edit/127386
Del: integrated -- https://main.php.net/note/delete/127386/integrated
Del: useless -- https://main.php.net/note/delete/127386/useless
Del: bad code -- https://main.php.net/note/delete/127386/bad+code
Del: spam -- https://main.php.net/note/delete/127386/spam
Del: non-english -- https://main.php.net/note/delete/127386/non-english
Del: in docs -- https://main.php.net/note/delete/127386/in+docs
Del: other reasons-- https://main.php.net/note/delete/127386
Reject -- https://main.php.net/note/reject/127386
Search -- https://main.php.net/manage/user-notes.php