1 out of 4 rated this helpful - Rate this topic

How to: Retrieve a Protocol-Specific WebResponse that Matches a WebRequest

This example shows how to retrieve a protocol-specific WebResponse that matches a WebRequest.

WebRequest req = WebRequest.Create("http://www.contoso.com/");
WebResponse resp = req.GetResponse();

This example requires:

  • References to the System.Net namespace.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.