This article mainly introduces the PHP Curl landing QQ After the user information to obtain the certificate error, the need for friends can refer to the
Tonight open Ecmall Mall QQ login function, in the callback error, file_get_contents function execution, did not crawl to the correct information, so instead of curl, but prompted the certificate error.
Found a solution on the Internet, is to remove the certificate certification.
The code is as follows:
curl_setopt ($ch, Curlopt_ssl_verifypeer, FALSE);
curl_setopt ($ch, Curlopt_ssl_verifyhost, FALSE);
This method is feasible.
There is another argument on the web that uses
The code is as follows:
curl_setopt ($ch, Curlopt_httpheader, Array (' Expect: '));
But the test results were wrong.
Very simple solution, but it took a lot of effort to find information, here recorded, share to everyone.