?
Solved

FTP file download problem

Posted on 2011-03-08
3
Medium Priority
?
441 Views
Last Modified: 2012-05-11
Hi,

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:

ftp://ftp.mycompany.co.uk/myfolder/mydownloadfile.xml

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?

Lee
0
Comment
Question by:Lee Savidge
  • 2
3 Comments
 
LVL 15

Expert Comment

by:pateljitu
ID: 35070189
This is a good article to setup FTP and authentication:

http://learn.iis.net/page.aspx/321/configure-ftp-with-iis-7-manager-authentication/
0
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 0 total points
ID: 35127393
There was a permissions problem on the folder and the permissions didn't allow direct access to the files. Giving full access to the folder and it's files to the FTP user fixed the issue
0
 
LVL 25

Author Closing Comment

by:Lee Savidge
ID: 35170639
It was a permissions problem.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question