1
realpg 2015-08-06 18:15:54 +08:00
|
2
imn1 2015-08-06 18:16:51 +08:00
服务器上php对外请求的的安全选项没有开启
|
3
blakefan OP @imn1 你说的应该是php.ini 里面的 extension=openssl.dll这个扩展。但是我这边已经开启了
|
4
vibbow 2015-08-06 18:30:48 +08:00
cURL把调试信息打开
$verbose = fopen('php://temp', 'rw+'); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_STDERR, $verbose); rewind($verbose); $verboseLog = stream_get_contents($verbose); echo $verboseLog; |
5
zencoding 2015-08-08 17:51:12 +08:00
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); |