Hello! I have a problem trying to redirect with curl.
My website is www.tgptrades.net.
It's a trades center. Read it and you will undestrand my problem.
I want now to add a new module that will let me add external sites.
For this to become possible, I have to send to those sites, visits with my referer (http://www.tgptrades.net)
I manage visits form a lot of sites with my out.php file.
I've tryed with this code, but it does not redirect to the URL like header("Location: $url"). The url in the address bar is still my test.php page, and the <BASE> is "localhost", not the url host.
$ch = curl_init();
curl_setopt ($ch, CURLOPT_REFERER, "http://www.tgptrades.net/");
curl_setopt ($ch, CURLOPT_URL, "$url");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_exec ($ch);
curl_close ($ch);
Any idea on how can I redirect a visit to a given url and make that site recive MY site as referer??
Thank you
Dandy