Retrive web address

J

Jon

Hello all.

Is there a way to intercept a web request to see what url has been
requested?

For example, in my asp.net application I have a link that takes you to
google, amazon and yahoo.

When a user clicks on this link I was to intercept the request and
grab the url as the page exists.

Please be advised that I can't do this with the standard onClick event
etc. (I'm using an embedded pdf file) that has internal links.

Regards,

Jon
 
G

Gregory A. Beamer

Hello all.

Is there a way to intercept a web request to see what url has been
requested?

For example, in my asp.net application I have a link that takes you to
google, amazon and yahoo.

When a user clicks on this link I was to intercept the request and
grab the url as the page exists.

Please be advised that I can't do this with the standard onClick event
etc. (I'm using an embedded pdf file) that has internal links.

Regards,

Jon

Create the embedding links like this:

http://www.mysite.com/UrlHandler.aspx?url=www.amazon.com ...
 
J

Jayesh Modha

Hi,

When you said intercept a web request, HttpHandler came into my mind.
If the solution mentioned by Gregory does not work for you, try using
http handler. in the process method, you get whole http context
object.
Look at this link, http://www.15seconds.com/Issue/020417.htm
Let me know if this is not what you are looking for.

Thanks,
Jayesh Modha
 
J

Jon

Hi,

When you said intercept a web request, HttpHandler came into my mind.
If the solution mentioned by Gregory does not work for you, try using
http handler. in the process method, you get whole http context
object.
Look at this link,http://www.15seconds.com/Issue/020417.htm
Let me know if this is not what you are looking for.

Thanks,
Jayesh Modha

Thanks to you both, I'll look into these.

Jon
 

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

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top