rendered paste body<?php
$fp = fsockopen("www.proxy.org", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\r\n";
} else {
$out = "GET /tor.shtml HTTP/1.1\r\n";
$out .= "Host: proxy.org\r\n";
$out .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7\r\n";
$out .= "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n";
$out .= "Accept-Language: en-us,en;q=0.5\r\n";
$out .= "Accept-Encoding: gzip,deflate\r\n";
$out .= "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n";
$out .= "Keep-Alive: 300\r\n";
$out .= "Connectiom: keep=alive\r\n";
$out .= "\r\r";
//$out .= "Referer: http://proxy.org/\n\n";
fwrite($fp, $out);
while (!feof($fp)) {
$data .= fgets($fp);
}
fclose($fp);
$pos = strpos($data, "\r\n\r\n") + 4;
$data = substr($data, $pos);
//$data is now ONLY the page data
echo "<p>$data</p>";
}
?>