<? set_time_limit(100); function Post($server,$url,$post) { $q="POST $url HTTP/1.1\r\n". "Host: $server\r\n". "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n". 'Accept:text/html, image/jpeg, image/png, text/*, image/*, */*'."\r\n". "Accept-Encoding: x-gzip, x-deflate, gzip\r\n". "Accept-Charset: windows-1251, utf-8;q=0.5, *; q=0.5\r\n". "Accept-Language:ru, en\r\n". "Keep-Alive: 300\r\n". "Proxy-Connection: keep-alive\r\n". "Referer: $server \r\n". // "Content-Type: application/x-www-form-urlencoded\r\n". "Content-Length: ".strlen($post)."\r\n". "\r\n". "$post\r\n"; $s=fsockopen($server,80); fputs($s,$q); while (!feof($s)) $page.=fgets($s); fclose($s); return $page; } echo Post('91.196.0.75','http://www.weblancer.net/','login=Buffalon&password=xXx'); ?>