srchulo has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
Right now I am in a situation where I would like to be able to get the full URL of the script that is running. For instance,
http://beta.gearheadgaragesale.com/search.htm#red%20bmw
Would return everything, including the # onward. I need this because I am updating a page via AJAX, and I would like the user to be able to copy and paste the link and have someone else see the results they were viewing, and so I need the whole URL so that perl can pre fill the page. I am using the "#" instead of the "?" because when I append the "?" to the end of the URL with Javascript, it reloads the page.
I was not able to find an environment variable that does this. Is it even possible? Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Get full url
by Corion (Patriarch) on Oct 30, 2011 at 11:06 UTC | |
by srchulo (Sexton) on Oct 30, 2011 at 11:08 UTC | |
Re: Get full url
by moritz (Cardinal) on Oct 30, 2011 at 11:06 UTC | |
by Anonymous Monk on Oct 31, 2011 at 02:46 UTC |