Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$ENV{'HTTP_REFERER'} and JavaScript

Status
Not open for further replies.

redstarfcs1

Programmer
Sep 21, 2005
7
RO
I call a script using javascript..but I can't read the $ENV{'HTTP_REFERER'};

How to get the page that calls my script?!
 
are you saying in PERL the HTTP_REFERER is blank?

Thats because HTTP_REFERER is not robust and you would need to do something like submit the form to the PERL script or use a proper anchor HREF.

Also many browser withold this info anyway.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I want to read the metatags of that page, which called my cgi script. It's all I want to do..but HOW?!
 
i'm not sure if metatags are available in the enviroment variable, someone else needs to answer that i'm afraid.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I don't need to be available in Env. I have a script which called them..I only want to know which page call the script which read metatags..
 
the page calling the script is in HTTP_REFERER, but it is unreliable, i don't know of anywhere else you can get the info on the page which called your script.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top