Retrive web address

  • Thread starter Thread starter Jon
  • Start date Start date
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
 
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 ...


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
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
 
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
 
Back
Top