时间:2021-07-01 10:21:17 帮助过:7人阅读
echo file_get_contents('http://check.ptlogin2.qq.com/check?regmaster=&uin=369872340&appid=549000912&js_ver=10049&js_type=1&login_sig=4aNczek7pQ2h04JL8nS0xfDqPQsJ-oF5czyfk1lOAY47-HswQg3rmElsCZ6QIAyO&u1=http%3A%2F%2Fqzs.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&r=0.42962526359176423');得
$host = 'check.ptlogin2.qq.com';
$param = '/check?regmaster=&uin=369872340&appid=549000912&js_ver=10049&js_type=1&login_sig=4aNczek7pQ2h04JL8nS0xfDqPQsJ-oF5czyfk1lOAY47-HswQg3rmElsCZ6QIAyO&u1=http%3A%2F%2Fqzs.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&r=0.42962526359176423';
$out = array(
"GET $param HTTP/1.0",
"Host: $host",
'Connection: Close',
'', ''
);
$fp = fsockopen($host, 80, $errer, $errno, 1);
fwrite($fp, join("\r\n", $out) );
while(! feof($fp)){
echo fread($fp, 1024);
}
HTTP/1.1 200 OK
Server: tencent http server
Pragma: No-cache
P3P: CP="CAO PSA OUR"
Set-Cookie: confirmuin=0; PATH=/; DOMAIN=ptlogin2.qq.com;
Set-Cookie: ptvfsession=ec74c1fdab7c67a28e60e26b39ca2cd789648df0341f311ebd4a970791b4e4af72576feb6fc4abf6e403d3a52ff4ccd5; PATH=/; DOMAIN=ptlogin2.qq.com;
Set-Cookie: ptisp=ctc; PATH=/; DOMAIN=qq.com;
Connection: close
Content-Type: application/x-javascript; charset=utf-8
ptui_checkVC('0','!WKV','\x00\x00\x00\x00\x16\x0b\xcd\xd4');