w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
curl error : Warning: curl_exec(): 45 is not a valid cURL handle resource

Your code is working pretty fine.

As you can see the image.. Google have blocked the request from your IP address as it detected unusual traffic activity.

You can always check the HTTP Status Code what your requesting URL gives by..

echo $http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);

If everything is normal , you would get a 200 response, else you will get some other status code.

Here are the most common HTTP Status Codes..

enter image
description here

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.