注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

phperwuhan的博客

记载一个phper的历程!phperwuhan.blog.163.com

 
 
 

日志

 
 

php curl 无法打开 https 的问题  

2009-12-29 15:53:06|  分类: php |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

来源:http://devbbs.doit.com.cn/thread-4205-1-1.html

code 如下, 没有任何反映? 要打开ssl link, https 怎么弄阿?

PHP code
<?php

$url='https://login.yahoo.com/config/login?';
//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable

## Below two option will enable the HTTPS option.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  FALSE);


//execute post
$rese> , t.-' CURLOPT_S post
$reseoit/#m=>1.html" >http:ordete pck fr ima" href="htthareBtn_qqweibo2" ti t.-' CURLOP LSE)5m-3 "  1 楼 ttm1984las回复:="htLZ,我这里测试你这段代码工作正常。 enable t="ht="ht确实是代理ass="b hr多谢帮忙测试SE)5 03 noul"g ztag">

纃iv class锉 fc05 fc11art">

art">
ar pre fs1"03 nouLoag zta 宋(function(){ var e = s="ibwumiiRel75&dI多 n clg clearfix prblog-start">
03 nou">    03 nou">   

纏c m s=art"> 03 nou">    tpbar clane-heights=art"> a r(le="分享到LOFassiReadCou lass="fcart"> 评论(le="分享到LOFassiC &nbsrgin-left:12px;colos"> lass="fcart">       

1>

 

dk/1.1.1n_20150109_03&n /aRLOTER<3102ofo4 art"><03 nou0303 n"inpuction(){oneden"
&"divrdI tyPrin03 nou03 n03 n"inpuction(){oneden"
&"://w&"  &"dl l c"de
<"P $rein.yBR tin.yBR tin.yBR t t.-' CURLOin.yBR t post
$reseoit/#m=>1.html" >httpin.yBR tete pck fr ima" in.yBR tin.yBR tthareBtn_qqwein.yBR tin.yBR t?限治 tin.y/P t in.yP t限治觕d boin.y/P t in.yP t  1 楼 ttm1984las回复:in.yBR tLZ,我这里测试你这段代码工作正常。 in.yBR tin.yBR tin.yBR tin.yBR t确实是代理ass="b hr多谢帮忙测试in.y/P t tyPrin03 nou03 n03 n"inpuction(){oneden"
&"3%E9%9&"3%E9%9Url&"stagasoru.as tyPrin03 nou03 n03<03 nou0303">  03 nou">  ass="m2a iLoad"> 03 nou"> &nbs">举报 
722nofoltgl"noas-ass=  62"nofoltgl0noas-ass=   03 n"ight fc003 nou03 n03 nou">  lass="multicntwrd题举yo 举报fc03 bdwb bdc0BottomD2 clearfix'> "_shareBLoad""
ot">cnLoad">n"h4anbsp;&nlass="multicnt cl7ass="t最近读者rfi4 " <-bitm bdne-heights="_shareBLoad""_shareBLoad"" =age.ass="fl iblock;visib0x2ty:oneden;der=":0;ing:10p0;w.lr:#fw:oneden;举 ER" ot0 bdcLoad"> "h4anbsp;&nlass="multicnt cl7ass="t热度rfi4 " ">举 l)" cnLoad">n n"="_blank"adSPAN3.com/ble"> n" ">举fdliha$_narfanbsp;&nfdliha$_narf5 Load"> n"arginhe="true">举cmnedth="240" height="240" frameborder="0"59crolling="n5">lling="no" marginhansparency="trup://g.163.com/r?site=net5 arginh>cnLoad""_shareBLoad"cnLoad"" >cnLoad" "h4anbsp;&nlass="multicnt cl7ass="a=age.as="_blankf="h"htrgetpan class="p3rgetlank"blogn: %;w.lr:#fw:oneden;<>cnLoad" "arginhe=age.asmax-der=":78rgetframeb:" href=" hre5getft:12px;powcN3.">举tp:/dl l%3.cling="n120" p://g.163.com/r?site=net ansparency="trurder="0" allowtrapp/javascripww. nnect:/dl cnLoad"prblog-stLoad""_shareBLoad"" ">举c金等膌ankSPANl cnLoad">ng ztargin-leing:10p4rgetpan class="p4rgetframeb:"5geh"ht5geh";/> 1gehsolid #d5d5d5;bwwwgrou鈊:#ffffe1tlank"blogn: n n" e=age.as:#ff00gsep";ing:10p2rgetpan class="p2rget="_blank" hre16pxh" href;ima" hrd7854e;etesor:potwoert">iv id= Load"> n" =age.as="_blane:12px2窍,ima" hrn:no 鎠="pri,
,人人有奖!execute postexecute postexecut"="=age.asima" hrd7854e;lank"d/dlr75 :://www.hread-4205-1-n_20150109_03&reiofter.com/sele 要抢 t
"_shareBLoad""_shareBLoad"" nbsp;&ndl n"h4anbsp;&nlass="multicnt cl7ass="h评论rfi4举pow"C " nbsp;  clas9"_shareBtn_y"_shareB03 "_shareB03"_shareB"_shareB" nbsp;&n nof-ber /scn3 "lankER"
&">
  

code 如下, 没覾3. \-4205-1-1.html

code 如下, 没有任\fc0P\t3 "P\tl='htt\sl link, https 怎么弄阿?

de
<\3. \-

$\t3l='htt\sl lcBR\fin.yahoo.co\fcBR\ffig/l\ogin?';
//open connection
$ch = \curl_\init();

//set \the url, number of POS\fcBR\fs, POST data
curl_setopt($ch,CURLOPT_UR\>,$url\tl numcurl_setopt($ch, CURLOPT_FOLLO0P\t',art">

,art"> 04'us:'://w',art"> :'unFue"ow',art">,art"> Ispao:'',art">&"> <{l)" optas xk'; } {if !!xk'; } " < n"="nbsp;&n clauhan.reiofter.com/sele"one;float:left;mahread-4205-1-pow"tp://phpe${x.visi hiNBR>} art">==visi hi.udivNBR>}art">|escape}" //wrror ivs.ageG .fscr nbsp;&ndwd)}&r=${visi hi. _Upd75&y=''}"nwart">)}"nwart">ST ne; art">&nbs&nbs&nbs&nbs n> eiofter.com/selecone;float:left;mahread-4205-1-pow"tp://phpe${x.visi hiNBR>} art">,8)|escape}art">&">

} "marenbsp;&nlasa)}"nw" "="iofter.com/selecnbsp;&n clau> hread-4205-1-pow"tp://phpe${a.udivNBR>} ${fn(a.href
,8)|escape}" " nbsp;&ntworan cl ${a.ourfIspao|escape}{if gR" tct=}${su="$ <{0ark'; &"> <{l)" optas xk'; } {if !!xk'; } "
{0ark'; {lecstk'; &"> <<06" style cl dth过这篇 tm的人 id= h ztag"> wart">< {l)" optas xk'; } {if !!xk'; } oa" < noa"="_blank" clauhan.reiofter.com/sele"one;float:left;m.com/" target=pow"tp://phpe${x.:/dl } art">|escape}" //wrror ivs.ageG .fscr nbsp;&ndwd)}"nwart"> iofter.com/selechne;float:left;m.com/" target=pow"tp://phpe${x.:/dl } art">,6)|escape}art">< " wart">< {0ark'; {lecstk'; oa" wart"><{if !!b&&b.length>0k'; } "p nbsp;&n cl 他们还 dth了 id= h ztag"> id="r_ml{l)" obtas yk'; } n{if !!yk'; } noa" iofter.com/selechion?id=12251pow"tp://phpe${y.:/dl {lark'; } {lecstk'; oa" id="r_ml{lark'; &"> 用 enbsp;&n="$_s cl7">转詌糽oc id="$_blart"><< tpbhanart"><{l)" odtas xk'; } oa" < oa" nbsp;&n=pbar |escape}" < " wart">< {0ecstk'; oa" id="r_&"> 用{l)" optas xk'; } {if !!xk'; } " } ${x.()rmblonk}/?:/dl {lark'; } {lecstk'; &"> art"><{l)" optas xk'; } {if !!xk'; } " } ${x.()rmblonk}/?()r"tealR/dl Bow"reispan c${x. {lark'; } {lecstk'; &"> art"><{l)" optas xk'; } {if !!xk'; } " {lark'; } {lecstk'; &"> << wart">4}{bR" k}{0arkart"> iofter.com/selec.com/" target=pow"tp://phpe${x.udivNBR>}/${x.()rmblonk|defat${fn2(x.argetshy='','yyyy-MM-dd HH:mm:ss')}i 03 nou03 {lark'; } {lecstk'; oa" wart"&"> <{l)" optas xk'; } {if !!xk'; } " {0ark'; {lecstk'; &">

 620s=P LSE art"> .com/" target=hooomnewceppow"tp://phpe${pow"D>< {lark'; } {if !!(pow"D> 6┰ art">T ne; "="nbsp;&n> hread-4205-1-hooomnewceppow"tp://phpe${pow"D>< {lark'; &"> <{l)" optas xk'; } {if !!xk'; } " nbsp;&n I多 "n>< n"="nbsp;&n clauhan.reiofter.com/sele"one;float:left;mahread-4205-1-pow"tp://phpe${x.argetsher/div
} art">==visi hi.udivNBR>}art">|escape}" //wrror ivs.ageG .fscr nbsp;&ndwd)}&r=${visi hi. _Upd75&y=''}"nwart">)}"nwart">ST ne; art"> .iofter.com/selechne;float:left;m.com/" target=pow"tp://phpe${x.argetsher/div
} art">,8)|escape}art">< "="_blank" -myLikeI < %A2% {if x.%A2%E=1} js-SPke%A2%{widtif x.%A2%E=2} js-rlofte%A2%{widtif x.%A2%E=3} js- } P LSE " wart"><{lark'; } {lecstk'; &"> <03 nnnnn" nbsp;&n掷