Export (0) Print
Expand All

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.

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

This example requires:

  • References to the System.Net namespace.

Community Additions

© 2014 Microsoft