Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Troobleshooting a problem with $HTTP_REFERRER

General discussions related to php

Moderators: macek, egami, gesf

Troobleshooting a problem with $HTTP_REFERRER

Postby Tony121076 » Mon Feb 17, 2003 3:42 pm

I'm trying to troobleshoot a problem, but I can't tell if the problem is with my script or the way I'm trying to call it. I need to know...

If you are at an address like http://www.google.com/search?q=test , and then you go to your php script by typing the path into the location bar, will $HTTP_REFERRER return the google address? Or do you need to actually click a link on the google page leading to your script?

If you need to actually click a link, then is there any way to troobleshoot a script like this if you don't have any pages on google?

Any advice about any of this would be MUCH appreciated. Thanks in advance.
Tony121076
New php-forum User
New php-forum User
 
Posts: 28
Joined: Fri Jan 03, 2003 4:00 pm

Postby SimonEast » Mon Feb 17, 2003 8:03 pm

I'm pretty sure typing in an address doesn't send the REFERER header. You'll need to create another page containing a link to your first page.

...Or you could maybe use telnet. See here:
http://www.datatrendsoftware.com/spoof.html

Simon.
SimonEast
New php-forum User
New php-forum User
 
Posts: 3
Joined: Sun Dec 22, 2002 6:05 pm


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.