Kod php:
<?php
$dane = 'GET / HTTP/1.1
User-Agent: Opera/9.50 (Windows NT 5.1; U; en)
Host: www.google.pl
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: pl-PL,pl;q=0.9,en;q=0.8
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Cookie: PREF=ID=211c1586f556a701:TM=1206369854:LM=1206369854:S=zs_9VOr-l2XBK1S5; SID=DQAAAGkAAAAynt2BRsw_ZLc3CKs3STNuXBxS4Dl-3vMEXxfh-tC1izLr8P--ul67CnSgSVNj3MZLLCLSVuUEZw2YJrUdilbvaVTwZ3Ej42RhUkTJz4ofmY79rKLsE2MmCEUUOodxQtmTxr4INBLYkdpLTDQtdNbx
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
';
$dane2 = 'GET /url?sa=p&pref=ig&pval=3&q=http://www.google.pl/ig%3Fhl%3Dpl%26source%3Diglk&usg=AFQjCNFSBnLC7avBPFGux0D8T8TIS5FDUQ HTTP/1.1
User-Agent: Opera/9.50 (Windows NT 5.1; U; en)
Host: www.google.pl
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: pl-PL,pl;q=0.9,en;q=0.8
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Cookie: PREF=ID=211c1586f556a701:TM=1206369854:LM=1206369854:S=zs_9VOr-l2XBK1S5; SID=DQAAAGkAAAAynt2BRsw_ZLc3CKs3STNuXBxS4Dl-3vMEXxfh-tC1izLr8P--ul67CnSgSVNj3MZLLCLSVuUEZw2YJrUdilbvaVTwZ3Ej42RhUkTJz4ofmY79rKLsE2MmCEUUOodxQtmTxr4INBLYkdpLTDQtdNbx
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
';
$start=fsockopen("google.pl",80);
fputs($start, $dane);
fgets($start);
sleep(10);
fputs($start, $dane2);
fgets($start);
sleep(10);
echo "ok";
exit;
?>
Jak temu zaradzic? Chce w jednym polaczeniu otworzyc kilka podstron..