HttpWebResponse provides an HTTP-specific implementation of the WebResponse class.
Imports System.IO
Imports System.Net
Imports System.Text
public class MainClass
Shared Sub Main()
Dim HttpWReq As HttpWebRequest = CType(WebRequest.Create("http://www.domain.com"), HttpWebRequest)
Dim HttpWResp As HttpWebResponse = CType(HttpWReq.GetResponse(), HttpWebResponse)
HttpWResp.Close()
End Sub
End Class
Related examples in the same category