Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How can I pass the URL of the page I am on?

by Trimbach (Curate)
on Oct 10, 2000 at 23:45 UTC ( [id://36110]=note: print w/replies, xml ) Need Help??


in reply to How can I pass the URL of the page I am on?

... and if you want to find out the URL of the webpage that triggered your CGI in the first all you have to do is:
$referrer=$ENV{'HTTP_REFERER'};
and that's that. No CGI.pm, no forms, no nothin'.

Replies are listed 'Best First'.
RE: Answer: How can I pass the URL of the page I am on?
by merlyn (Sage) on Oct 10, 2000 at 23:48 UTC
    And not reliable!
    • Referer may be missing (stripped by security software and/or firewalls)
    • Referer may be wrong (some browsers blow it on the spec)
    • Referer is trivially faked
    The big clue is, how can you rely on a variable with an incorrectly spelled name!

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://36110]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-26 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found