The PHP script I wrote previously, has also been updated, for those that would like to use it (and hopefully, offer a new vURL mirror ;o)). The new code is;
<?php
$str =$_SERVER['QUERY_STRING'];
parse_str(urldecode($str),$getVarArray);
// URL to get
$urlStr = $getVarArray['url'];
$urlStr = htmlspecialchars($urlStr, ENT_QUOTES);
// Referer URL to use
$refStr = $getVarArray['ref'];
$refStr = htmlspecialchars($refStr, ENT_QUOTES);
// User agent to pass
$uaStr = $_SERVER['HTTP_USER_AGENT'];
// Get the contents
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $urlStr);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_REFERER, $refURL);
curl_setopt($curl, CURLOPT_USERAGENT, $uaStr);
$return = curl_exec($curl);
curl_close($curl);
print $return;
?>
$str =$_SERVER['QUERY_STRING'];
parse_str(urldecode($str),$getVarArray);
// URL to get
$urlStr = $getVarArray['url'];
$urlStr = htmlspecialchars($urlStr, ENT_QUOTES);
// Referer URL to use
$refStr = $getVarArray['ref'];
$refStr = htmlspecialchars($refStr, ENT_QUOTES);
// User agent to pass
$uaStr = $_SERVER['HTTP_USER_AGENT'];
// Get the contents
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $urlStr);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_REFERER, $refURL);
curl_setopt($curl, CURLOPT_USERAGENT, $uaStr);
$return = curl_exec($curl);
curl_close($curl);
print $return;
?>
No comments:
Post a Comment