A few days ago, I reinstalled the apache + php + mysql environment of the centos server and obtained the webpage content through the command curlgithup.com. However, when I access https through the curl of the php code, the connection is reset, http can be used normally. What is the possible cause? Please kindly advise... A few days ago, I reinstalled the centos server's apache + php + mysql environment, through the command curl https://githup.com can get the web content, but through the php code curl access https connection is reset, http can be used normally. What is the possible cause? Thank you for your advice.
Reply content:
A few days ago, I reinstalled the centos server's apache + php + mysql environment, through the command curl https://githup.com can get the web content, but through the php code curl access https connection is reset, http can be used normally. What is the possible cause? Thank you for your advice.
The domestic issue is very complicated. You can check it with curl_getinfo.
In addition, the http://github.com will be 302 jump to/your normal use of what does it mean?
Curl_setopt ($ curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ curl, CURLOPT_SSL_VERIFYHOST, FALSE );