I do not want to include the referer as part of the url. I want the referer to be part of the header so that the site I have redirected to can see the referer within the $_SERVER['HTTP_REFERER'] call.
I have looked at the follow:
Code: Select all
header (“referer: http://www.mysite.com”);
header(“location: http://www.newsite.com”);I have looked at cURL and it does send the referer however I’m not redirected to the new site. I am still in a shell in my own site.
Looking at fsockopen() I believe the outcome will be the same as cURL.
Is there any way of redirecting to a new site and have the ability to include a referer in the header which I have been able to modify before the redirect?
Thank you in advance for any ideas or help.