Dim sResult As String Dim objResponse As WebResponse Dim objRequest As WebRequest = System.Net.HttpWebRequest.Create(URL) oProxy.Credentials = New NetworkCredential(UserName, PassWord, Domain) objRequest.Proxy = oProxy objRequest.Method = "GET" objRequest.Timeout = 120000 ' 20 sec. objResponse = objRequest.GetResponse Dim sr As System.IO.StreamReader = New StreamReader(objResponse.GetResponseStream(), System.Text.Encoding.UTF7) sResult = sr.ReadToEnd() sr.Close()
poProxy.Credentials = CredentialCache.DefaultCredentials
oProxy.Credentials = New NetworkCredential(UserName, PassWord, Domain)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)