Rothariger Posted July 15, 2005 Posted July 15, 2005 hello i have an windows vb app, that must to connect to an webapplication asp.net the problem is that the site have basic authenticacion... ok i have done this... Dim strURL As String = TextBox1.Text Dim ReportWebRequest As System.Net.HttpWebRequest = CType(System.Net.WebRequest.Create(strURL), System.net.HttpWebRequest) ReportWebRequest.Timeout = 1000000 ReportWebRequest.MaximumAutomaticRedirections = 50 Dim cCache = New System.Net.CredentialCache cCache.Add(New Uri(strURL), "Basic", New System.Net.NetworkCredential("User", "Pass", "Domain")) ReportWebRequest.Credentials = cCache ReportWebRequest.PreAuthenticate = True Dim ReportWebResponse As System.net.HttpWebResponse = CType(ReportWebRequest.GetResponse(), System.Net.HttpWebResponse) and here i stuck, i dont know what to do with the ReportWebResponse object... ok, i have another problem, i have to 2 thing, one is to open a internet explorer with the page, or if the user selects it, open it in the windows program itself, in an axwebbroser obj. some one can give me a hand? thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.