i want to access the "source code" of a "web page" by using vb.net 2005, web page has...

mhmm_2007

New member
...authentication? occurred error is: "THE REMOTE SERVER RETURNED AN ERROR: (401) UNAUTHORIZED"
-------------------------------------------------
This server is requesting that your username and password be sent in an insecure manner (basic authentication without a secure connection).
--------------------------------------------------------------------------------------------------------------
Try
Dim Request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(TextBox2.Text)
Dim Response As System.Net.HttpWebResponse = Request.GetResponse

Dim sR As System.IO.StreamReader = New System.IO.StreamReader(Response.GetResponseStream)
Dim Source As String = sR.ReadToEnd
TextBox1.Text = Source

Catch ex As Exception
MsgBox(ex.Message)
End Try
-----------------------------------------------------------------------------------------
how can i access the source code, where should i put my username and password to this code??
 
Back
Top