Create WebRequest class.
Imports System.IO Imports System.Net Imports System.Text public class MainClass Shared Sub Main() Dim myRequest As WebRequest = WebRequest.Create("http://www.domain.com") End Sub End Class