Monday, March 12, 2012

Want to call a custom handler that redirect and receive the http return code (302, 303 or

Hi,
I want to use a class (if possible other than Socket) which one I could call
a custom handler and receive the redirect code it sends...

Actually, I tried using the WebClient class, but when the WebClient is
redirected, it does not give the redirect code in the result, it
automaticaly redirects and put the resulting page into the result...

Is there a buit-in class that does what I need in the .Net Framework or will
I have to implement the HTTP protocol myself using the Socket class?

thanks

ThunderMusicuse HttpWebRequest and turn off AllowAutoRedirect.

-- bruce (sqlwork.com)

ThunderMusic wrote:

Quote:

Originally Posted by

Hi,
I want to use a class (if possible other than Socket) which one I could call
a custom handler and receive the redirect code it sends...
>
Actually, I tried using the WebClient class, but when the WebClient is
redirected, it does not give the redirect code in the result, it
automaticaly redirects and put the resulting page into the result...
>
Is there a buit-in class that does what I need in the .Net Framework or will
I have to implement the HTTP protocol myself using the Socket class?
>
thanks
>
ThunderMusic
>
>

0 comments:

Post a Comment