Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Could anyone tell me how to download a pdf file in server through ftp curl to a designated file on my Linux PC using username and password.

I tried following code but it doesn't download and ends up time out case.

JavaScript
curl -o username:password 'ftp://website.com/sample.pdf'
Posted
Updated 19-Apr-15 1:59am
v2
Comments
[no name] 29-Apr-14 20:44pm    
http://curl.haxx.se/docs/manual.html
Kornfeld Eliyahu Peter 19-Apr-15 8:16am    
The problem is with -o...it should be -u!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900