Answers for "how to check curl request in php"

PHP
1

get http code curl php

$info = curl_getinfo($ch, CURLINFO_HTTP_CODE);
		
curl_close($ch);
if ($info == 200){
  return json_decode($result);
}
Posted by: Guest on April-27-2022
1

test curl php

function _isCurl(){
    return function_exists('curl_version');
}
Posted by: Guest on September-06-2021

Browse Popular Code Answers by Language