Well, I've created a very basic online proxy. I'm having trouble setting up the proxy. This is what I have so far:
I tried adding two options:
curl_setopt($curl, CURLOPT_PROXY, "IP here");
curl_setopt($curl, CURLOPT_PROXYPORT, "PORT here");
It didn't work, though. What am I doing wrong? Thanks!
Code:
<?
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $_POST['url']);
if ($_POST['cookies'] != "") {
curl_setopt($curl, CURLOPT_COOKIE, $_POST['cookies']);
}
if ($_POST['referer'] != "") {
curl_setopt($curl, CURLOPT_REFERER, $_POST['referer']);
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec($curl);
curl_close($curl);
echo $return;
?>
I tried adding two options:
curl_setopt($curl, CURLOPT_PROXY, "IP here");
curl_setopt($curl, CURLOPT_PROXYPORT, "PORT here");
It didn't work, though. What am I doing wrong? Thanks!