Código PHP:
<?php
$url = $_GET['url'];
$exploded = explode('//', $url);
$url = $exploded[1];
$exploded2 = explode('/', $url);
$host = $exploded2[0];
$path = str_replace($host, '', $url);
if($host){
if(!$path) $path = '/';
$socket = fsockopen($host, 80, $errno, $errstr, 30);
$peticion = "GET $path HTTP/1.1\r\n";
$peticion .= "Host: $host\r\n";
$peticion .= "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";
$peticion .= "User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.10) Gecko/20071115 Firefox/2.0.0.10\r\n";
$peticion .= "Connection: Close\r\n\r\n\r\n";
fwrite($socket, $peticion);
while (!feof($socket))
$resultado .= fgets($socket, 128);
fclose($socket);
}
$codigo = $resultado;
echo $codigo;
?>
si no entiendes el codigo te lo comeno :p