Downloading a File via Redirect Link
Greetings,
I am trying to construct a test for downloading a file from my employer's site in different browsers (IE, FireFox, Chrome) and I am using the Javascript solution provided here:
https://support.smartbear.com/viewarticle/8999/?st=0
However, I receive an error when I provide the download URL as the target URL (strFileURL). It may or may not be important to note that the URL I provide to the Javascript function is a redirect URL: https://[site]/common/redirect.cfm?/tcmain/common/filedownload.cfm+Filename=[FileName].xls&Path=//carrier%20rosters/Medical/&AdminPath=true
Here is the error I receive when executing the javascript function:
Error: 0x80072ee6
Error location:
Line: 20 Column: 11.
// Download the file
objHTTP.open("GET", SrcFileURL, false);
Any advice would be greatly appreciated. Thank you.