Solved

FTP file download problem

Posted on 2011-03-08
3
433 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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

910 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now