The test server fails to call the interface for no reason, and the return is always empty. I don't know why, so I print an exception in the curl_post method
curl_error
It was found that the error was Problem with the SSL CA cert (path? access rights?)
It's very strange, for this reason, the code is covered from the official server to the test server, and the exception remains. But there is no problem with the official clothes.
Using postman can also return normally.
Online search, called installation ca-certificate
yum reinstall openssl ca-certificates -y
report an error directly
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.10 (default, Apr 2 2018, 10:49:48) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
Use the command to see if it already exists
ll /etc/pki/tls/certs/ca-bundle.crt
The result is the official
-rw-r--r-- 1 root root 884985 May 10 2017 /etc/pki/tls/certs/ca-bundle.crt
The test suit is
-rw-r--r--. 1 root root 786601 Jun 24 2014 /etc/pki/tls/certs/ca-bundle.crt
Seems to be new enough, try looking for the update command. I didn't find it in time. I saw someone recommending a solution to restart. I suddenly remembered that I had dealt with such a problem before, so I restarted apche decisively.
service httpd restart
problem solved. .