[普通]php curl设置cookie

作者(passion) 阅读(1247次) 评论(0) 分类( 软件)
header("Content-type:text/html;Charset=utf8");  
$ch =curl_init();  
curl_setopt($ch,CURLOPT_URL,'http://www.babytree.com/user/picjournal.php');  
  
$header = array();  
//curl_setopt($ch,CURLOPT_POST,true);  
//curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);  
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);  
curl_setopt($ch,CURLOPT_HEADER,true);  
curl_setopt($ch,CURLOPT_HTTPHEADER,$header);  
curl_setopt($ch,CURLOPT_COOKIE,'B=115.100.62.7.1401937092035530; bdshare_firstime=1401937092199; __myutma=122328856.1548793539.1401937093.1408503164.1408694138.69;');  
  
  
$content = curl_exec($ch);


« 上一篇:wifi共享上网(至尊版wifi)
« 下一篇:ASP.NET附加数据库文件的方式,如何发布到IIS7而不导致SQLServer出错
在这里写下您精彩的评论
  • 微信

  • QQ

  • 支付宝

返回首页
返回首页 img
返回顶部~
返回顶部 img