Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...