WebRequest.Create (Uri) creates a new WebRequest instance for the specified URI scheme.
Imports System.IO
Imports System.Net
Imports System.Text
publicclass MainClass
Shared Sub Main()
Dim myUri As New Uri("http://www.domain.com")
Dim myWebRequest As WebRequest = WebRequest.Create(myUri)
Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
End Sub
End Class