I have a URL that consists of https:// servername/parameterList. If I enter the URL in IE, I'm prompted for username/password, and then have the option to open/save a text file of query results.
What I'm trying to do is get the query results automatically using VBA, either saving it to a file or returning the contents to a variable. I've tried several methods of downloading a file from a URL, including
How do i download a file using VBA (Without internet explorer)
However, this saves a file containing HTML (about the request?), rather than the results of the query that come in the downloadable file. So what I'm getting back is !DOCTYPE html etc., instead of a table of search results in tab-delimited columns.
I think the examples in the link above all have some file you want to download at the end of the URL so that it's a direct link to the file/image.
Sorry if there are questions that address this. I don't think I know what's happening in the process well enough to find meaningful results. Is the initial URL redirecting? If the results file is dynamically generated based on the query, is there any way to get to it? Thanks.