求助啊!!curl https请求的问题
curl http请求就正常没问题curl https请求就失败,换成file_get_contents https 就正常没问题!!!
然后在phpinfo里面看curl的信息是这样的[attach]5340[/attach]
环境是LAMP,PHP版本是5.2.17.求助。。。。
做微信开发的,调用微信的api都是https,瘫痪几天了。小白求助。。。。。。 求助啊帮忙解决一下啊 [quote]curl http请求就正常没问题
curl https请求就失败,换成file_get_contents https 就正常没问题!!!
...
[size=2][color=#999999]memor_y_222 发表于 2015-4-29 15:06[/color] [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68032&ptid=38350][img]http://www.wdlinux.cn/bbs/images/common/back.gif[/img][/url][/size][/quote]
哈哈,能解决这个问题 CURLOPT_SSL_VERIFYPEER 设置为 true ,设置使用SSL
CURLOPT_SSL_VERIFYHOST 设置为 0, 宽松证书模式 [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68045&ptid=38350]3#[/url] [i]inyhow[/i] [/b]求助啊,是升级PHP版本吗还是重新编译php,指点一下啊大哥 [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68046&ptid=38350]4#[/url] [i]xuandun[/i] [/b]试过了不行呀呀呀 没人回答,继续顶,解决过这个问题的来回答下啊大哥大姐们 顶啊 同问 求解决方法!!!!! [quote]回复 inyhow 求助啊,是升级PHP版本吗还是重新编译php,指点一下啊大哥
[size=2][color=#999999]memor_y_222 发表于 2015-4-30 17:01[/color] [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68066&ptid=38350][img]http://www.wdlinux.cn/bbs/images/common/back.gif[/img][/url][/size][/quote]
http://item.taobao.com/item.htm?spm=a1z10.1-c.w4004-2424201112.6.8oP3tB&id=37071505684 找这个店家解决的 php 5.3或以上版本才支持curl [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68171&ptid=38350]10#[/url] [i]fanlei519[/i] [/b]
是curl https请求才有问题,curl http请求是正常的! [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=68159&ptid=38350]9#[/url] [i]inyhow[/i] [/b]广告打的真好 继续顶。。。。 1111111111111111111 22222222222222
页:
[1]