Summary of php curl ssl authentication errors and other common errors during https authentication failure solution:
/** Refer to add search to find the reference address: http://www.google.com.hk/search? Hl = zh-CN & newwindow = 1 & safe = strict & client = firefox-a & hs = fyZ & rls = org. mozilla % 3Azh-CN % 3 Aofficial & q = https + curl % E8 % B0 % 83% E7 % 94% A8 & btnG = Google + % E6 % 90% 9C % E7 % B4 % A2http: // bbs.chinaunix.net/thread-3654216-1-1.html#/ php curl common errors: SSL errors, bool (false) symptoms: php curl call https error troubleshooting method: Use curl in the command line to call. Cause: The SSL certificate cannot be verified in the server room. Solution: Skip the SSL certificate check. Curl_setopt ($ ch, CURLOPT_SSL_VERIFYPEER, false); symptom: php curl calls curl_exec to return bool (false), and the command line curl call is normal. Troubleshooting method: var_dump (curl_error ($ ch); return: string (23) "Empty reply from server" and then troubleshoot: curl_setopt ($ ch, CURLOPT_HEADER, true ); curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, false); returned: HTTP/1.1 100 ContinueConnection: close cause: php curl ends when it receives HTTP 100. you should continue to receive HTTP 200 solutions: curl_setopt ($ ch, CURLOPT_HTTPHEADER, array ('CT :'));