J
John West
I have a Web Site that I want to monitor and gather
information from which requires a secured user id and
password of which I have but don't know how to gather get
by the secured log in to get to the pages I need. I have
gathered information from sites that don't require secured
login by using the following code:
Function readHtmlPage(ByVal url As String) As String
Dim objResponse As WebResponse
Dim objRequest As WebRequest
Dim result As String
objRequest = System.Net.HttpWebRequest.Create(url)
objResponse = objRequest.GetResponse()
Dim sr As New StreamReader
(objResponse.GetResponseStream())
result = sr.ReadToEnd()
sr.Close()
Return result
End Function
But don't know how to get around the sites that require
secured log-in such as https protocol.
Any help or direction would be appreciated.
information from which requires a secured user id and
password of which I have but don't know how to gather get
by the secured log in to get to the pages I need. I have
gathered information from sites that don't require secured
login by using the following code:
Function readHtmlPage(ByVal url As String) As String
Dim objResponse As WebResponse
Dim objRequest As WebRequest
Dim result As String
objRequest = System.Net.HttpWebRequest.Create(url)
objResponse = objRequest.GetResponse()
Dim sr As New StreamReader
(objResponse.GetResponseStream())
result = sr.ReadToEnd()
sr.Close()
Return result
End Function
But don't know how to get around the sites that require
secured log-in such as https protocol.
Any help or direction would be appreciated.