The following snippet of code is part of a larger module, and the code shown
here is giving me an error. The error is "The remote server returned an
error: (401) Unauthorized." The error occurs on the line 'objResponse =
objRequest.GetResponse()
.................................................. ......................................
Private Function readHtmlPage(ByVal url As String) As String
Dim result As String
Dim objResponse As WebResponse
Dim objRequest As WebRequest = System.Net.HttpWebRequest.Create(url)
objResponse = objRequest.GetResponse(
.................................................. ......................................
Could someone please help me understand why this error is appearing. If
anymore information or clarification is needed, please let me know. Thanks.