I
Ian Emery
am using the following function to get the html page, assume i just use a
url such as http://www.acompany.com it gets the home page, that all works
fine, but how do I get the URL of what was downloaded page was such as
HTTP://WWW.ACOMPANY.COM/default.htm so it gives the name of the page
(default.htm)
Public Function GetPageHTMl(ByVal URL As String) As String
' Retrieves the HTML from the specified URL
Dim objWC As New System.Net.WebClient
Return New System.Text.UTF8Encoding().GetString( _
objWC.DownloadData(URL))
End Function
url such as http://www.acompany.com it gets the home page, that all works
fine, but how do I get the URL of what was downloaded page was such as
HTTP://WWW.ACOMPANY.COM/default.htm so it gives the name of the page
(default.htm)
Public Function GetPageHTMl(ByVal URL As String) As String
' Retrieves the HTML from the specified URL
Dim objWC As New System.Net.WebClient
Return New System.Text.UTF8Encoding().GetString( _
objWC.DownloadData(URL))
End Function