Re: Check for internet connection

Stoyan Damov <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
On 3/19/07, Stephen Bub <[email protected]> wrote:
> Which status code?  HTTPWebRequest.GetResponse() returns a WebResponse
> which doesn't have a status code.  The WebException has a status property,
> but generating a WebException is exactly what I'm trying to avoid.
>

cast to HttpWebResponse, then get its HttpStatusCode

Cheers,
Stoyan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.