The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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("");
WebResponse resp = req.GetResponse();

Compiling the Code

This example requires:

  • References to the System.Net namespace.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft