您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php 模拟登陆

2024/2/21 12:36:11发布17次查看
php 模拟登陆$url = http://www.discuz.net/;
$useragent = mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; theworld);
$cookie = dznet_cookietime=2592000;dznet_onlineusernum=7816;dznet_sid=qtlc87;dznet_auth=6bbecqrzgv4elinmlgu%2flgzspzbrsaugo1l0obp6vqw5p0bceg0xd4slycm2ks%2fl0ycvyso7xp2z8gmaxkpdubxzcwft;checkpm=1;
$ch= curl_init();
curl_setopt($ch, curlopt_url,$url);
curl_setopt($ch, curlopt_cookie, $cookie);
curl_setopt($ch, curlopt_referer, http://www.discuz.net/index.php);
curl_setopt($ch, curlopt_header, false);
curl_setopt($ch, curlopt_returntransfer, 1);
curl_setopt ($ch, curlopt_useragent, $useragent);
curl_exec($ch);
$tempcn = curl_multi_getcontent($ch);
curl_close($ch);
echo  $tempcn;
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product