I'm using an application called curl to download a file and place it in a specific directory. curl is able to pass in the username and password quite easily. The old server where the file was located was running Windows 2003 and whatever version of IIS ships with it. The file URL was, for example:
The FTP authentication was enabled so that if you hit that file or any location below the main domain it would prompt for a user name and password. This was great as curl could then do that. The problem is that the server was upgraded to Windows 2008 R2 which runs IIS 7.5. Now when you hit that folder you get a 404 error. If you hit the domain, type in the user name and password at the prompt, then double click on myfolder and then click on mydownloadfile.xml it will download it. How can I get IIS 7.5 to prompt with for authentication when you hit the file with a direct URL?