How Do I Obtain the Original URL after a redirect?

D

Dave Miller

Let's say a user enters the URL : www.mydomain.com/firstPage
and then gets redirected to the URL : www.mydomain.com/secondPage.

What I see in my browsers' address window is www.mydomain.com/firstPage.

Is there some say ( maybe in the HTTP Request object) that I can
determine that value of the URL that the user actually entered?

Any insight would be appreciated.

Thanks,
Matt
You could setAttribute() on firstPage and read it on secondPage. If you
want something with persistence, you could use cookies.
 
A

Arved Sandstrom

Let's say a user enters the URL : www.mydomain.com/firstPage
and then gets redirected to the URL : www.mydomain.com/secondPage.

What I see in my browsers' address window is www.mydomain.com/firstPage.

Is there some say ( maybe in the HTTP Request object) that I can
determine that value of the URL that the user actually entered?

Any insight would be appreciated.

Thanks,
Matt

It sure doesn't look to me like a redirect anyway. In a redirect the browser
is being told by the server to request a new page, and that new page will
show up in the adddress bar. What you're seeing looks like a forward to me.

AHS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top