WebRequest.Credentials Property gets or sets the network credentials
Imports System.IO
Imports System.Net
Imports System.Text
publicclass MainClass
Shared Sub Main()
Dim request As WebRequest = WebRequest.Create("http://www.domain.com/default.html")
request.Credentials = CredentialCache.DefaultCredentials
Dim response As HttpWebResponse = CType(request.GetResponse(), HttpWebResponse)
End Sub
End Class