PHP Curl Common error: SSL error, BOOL (FALSE)

Source: Internet
Author: User
Tags curl http 200 ssl certificate
Using the curl call on the command line to skip the SSL certificate check method, the friend you need can refer to the following.  Symptom (s): Php Curl calls HTTPS error troubleshooting: Try using curl calls on the command line. Reason: The server room cannot authenticate the SSL certificate.
Workaround: Skip SSL certificate checking.
Symptom (s): the PHP Curl call Curl_exec returns BOOL (false), and the command line curl calls normally.
Troubleshooting methods:
Return:
Further investigation:
curl_setopt ($ch, Curlopt_header, true);
return:
http/1.1 Continue
Connection:close
Reason: Php Curl received HTTP 100 is over, should continue to receive HTTP 200
Solution:
Return:
String (?) "SSL certificate problem:unable to get local issuer certificate"
Solution:
curl_setopt ($ch, Curlopt_ssl_verifypeer, false);
curl_setopt ($ch, Curlopt_ssl_verifyhost, false);



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.