I'm trying to download a file from a website, however, you need to login prior to accessing the file. If I try and access the file using the direct url path, it just redirects me to the login page. The server uses basic authentication.
Here's an example I found on the internet. However, I can't get it to work; it still redirects me to the login page. Am I missing something?