|
-
Dec 19th, 2003, 02:49 PM
#1
Thread Starter
New Member
CGI: Getting the Requested URL?
How do I get the URL that my script is being acessed from by the user?
Example: A script can be accessed by going to http://hosta.domain/script/, or http://hosta.domain/script/index.cgi, or http://hostb.domain/mirror/script/index.cgi. How can I tell which URL the user typed into their browser from within the script itself?
-
Dec 20th, 2003, 02:35 PM
#2
There should be a REQUEST_URI environment variable, or something very much like it. It contains the URI that the browser requested from the server.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 20th, 2003, 10:22 PM
#3
Thread Starter
New Member
Thank YOU captain obvious. Of course there should be one.
I'm asking what that variable is.
Last edited by Nick2588; Dec 20th, 2003 at 10:41 PM.
-
Dec 22nd, 2003, 07:14 AM
#4
Truth be told, from your post I couldn't even deduce that you know what an environment variable is in the first place. So knowing that there IS an environment variable should help you with your search.
Now go ahead and try not to piss off those that might help you.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|