php curl 获取https请求的2种方法

http://stackoverflow.com/questions/26148701/file-get-contents-ssl-operation-failed-with-code-1-and-more/26151993#26151993

$arrContextOptions=array(
"ssl"=>array(
"cafile" => "/path/to/bundle/cacert.pem",
"verify_peer"=> true,
"verify_peer_name"=> true,
),
);


http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/

php curl 获取https请求的2种方法
http://www.jb51.net/article/64953.htm

php https cacert.pem

posted @ 2017-03-29 12:35  stma  阅读(307)  评论(0)    收藏  举报