Subject: vb.net windows form authentication vs IIS basic Auth???

Rothariger

Regular
Joined
Apr 7, 2004
Messages
66
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!
 
Back
Top