Redirected link

robrodp
robrodp used Ask the Experts™
on
I have a linkto a website that redirects to another website. How can I  get the final linkm progarmmmig in asp?

Say original link is;

http.//original.com/index.html

redirected site is; http://redirected.com/new.html

I need a function that will cacth the redirection link

Any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010
Commented:
You should be able to get the url from the Request Headers

Request.Headers["Referer"]

Open in new window

Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
I don't understand what you are asking.

If you have a link that goes to index.html - how does your ASP script fit into the picture?

Will the ASP script be making the request to index.html?

Can you explain a bit more how this hangs together.
robrodpProgrammer

Author

Commented:
This worked okay thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial