P
Peter Rilling
I am trying to use an HttpWebRequest object to get resource from a website.
Now, some of the files that I try to get may not exist. I would like to
check for that condition. When I call GetResponse on files that do not
exist, I get an exception. What I would like is not to have the exception
but allow me to check that StatusCode property for the 402 condition. How
can I do this?
Now, some of the files that I try to get may not exist. I would like to
check for that condition. When I call GetResponse on files that do not
exist, I get an exception. What I would like is not to have the exception
but allow me to check that StatusCode property for the 402 condition. How
can I do this?