The curl debugging method is incorrect (mandatory ).
Example:
Privatefunction httpGet ($ url) {$ curl = curl_init (); curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, true); curl_setopt ($ curl, CURLOPT_TIMEOUT, 500 ); // to ensure the security of data transmission between a third-party server and the server, all interfaces are called using https. The following two lines of code must be used to enable ssl security verification. // If the Code fails to be verified here during deployment, download the new certificate identification file from the http://curl.haxx.se/ca/cacert.pem. Curl_setopt ($ curl, CURLOPT_SSL_VERIFYPEER, true); curl_setopt ($ curl, expires, true); curl_setopt ($ curl, CURLOPT_URL, $ url); $ res = curl_exec ($ curl ). var_dump (curl_error ($ curl); curl_close ($ curl); return $ res;} var_dump (curl_error ($ curl ))
Errors output by curl during execution
The debugging method for the above curl error (mandatory) is all the content shared by Alibaba Cloud xiaobian. I hope you can give us a reference and support for the customer's home.