note 117986 deleted from features.remote-files by salathe

From: Date: Mon, 21 Sep 2020 14:54:21 +0000
Subject: note 117986 deleted from features.remote-files by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215368@lists.php.net to get a copy of this message
Note Submitter: kalidass dot jst at gmail dot com ---- public function get_url($request_url) { $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, $request_url); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($curl_handle, CURLOPT_TIMEOUT, 0); curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl_handle, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, TRUE); $JsonResponse = curl_exec($curl_handle); $http_code = curl_getinfo($curl_handle); return($JsonResponse); } get_url("http://www.example.com");

« previous php.notes (#215368) next »