Znalazłem taki skrypcik
<?php $ip = $_SERVER["REMOTE_ADDR"]; function GetPage($url, $ip, $timeout = 5) { $result = ''; $port = $url['port']; { "GET " . $url['path'] . " HTTP/1.0r\n" . "Host: " . $url['host'] . ($port != 80 ? ':' . $port : '') . "r\n" . "Accept: text/html; */*r\n" . "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)r\n" . "X_Forwarded_For: " . $ip . "r\n" . "Via: " . $ip . "r\n" . "Client-IP: " . $ip . "r\n" . "Connection: closer\nr\nr\n"); return $result; } else return false; } $zzz = GetPage('http://www.szmerak.pl', '83.9.251.98'); ?>
Ale zapisuje on do pliku
Bad Request
Your browser sent a request that this server could not understand.
Request header field is missing ':' separator.