Kod
<?php
$fp = fsockopen("www.dollars4babes.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET /mpa2/gal/103047/2/1091108724 HTTP/1.1
Host: www.dollars4babes.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.7.6) Gecko/20050321 Firefox/1.0.2
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: mpa2-sexy_babes-GB-1091108724=1111772638";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
$szPlik .= fgets($fp, 128);
}
fclose($fp);
echo $szPlik;
exit();
}
?>
$fp = fsockopen("www.dollars4babes.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET /mpa2/gal/103047/2/1091108724 HTTP/1.1
Host: www.dollars4babes.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.7.6) Gecko/20050321 Firefox/1.0.2
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: mpa2-sexy_babes-GB-1091108724=1111772638";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
$szPlik .= fgets($fp, 128);
}
fclose($fp);
echo $szPlik;
exit();
}
?>
Wynik:
HTTP/1.1 302 Found Date: Sat, 26 Mar 2005 11:22:15 GMT Server: Apache/1.3.33 Location: http://gals.dollars4babes.com/mpa2/gal/103047/2/1091108724 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 ee
Found
The document has moved here.
0
Gdy wpisuje w skrypcie nowy adres Host: www.gals.dollars4babes.com wyskakuje to samo, nie moze znalezc dalszego przekierowania na strone docelowo http://galleries.babes.tv/asiacarreradildo/index.php
Dlaczego?