I’m using vb.net and need to download a file (from a given URL). The problem is that the directory is password protected. (Using standard .htpasswd)
If this is not possible using vb.net then please suggest an alternative solution.
Any help would be greatly appreciated. I have read this article to download a file.
I am not certain why you would password protect a directory if you then want to allow users to download files from it without entering a password. However, you could write an ASHX that takes the filename as a querystring parameter and serves the download for the requested file.