curl-users
command line download of ftp site over an http proxy
Date: Wed, 29 Jun 2011 11:32:15 -0700
Hi,
I've been struggling with this issue for a while and searched all that I could find but have still come up empty. Here is the situation:
I want to download a file from ftp://ftpsite/file.zip which requires a login of site_user and a password of site_password.
I need to go through a proxy http://proxysite which requires a login of a proxy_user and a password of proxy_password.
And then I need to output the file to c:/directory/file.zip
I have tried a myriad of combinations of:
Curl -x http://proxysite -u proxy_user:proxy_pass ftp://ftpsite/file.zip - u site_user:site_password -o c:/directory/file.zip
Curl -x http://proxysite -u proxy_user:proxy_pass ftp://site_user:site_password@fitesite/file.zip -o c:/directory/file.zip
Curl -x http://proxysite -u proxy_user:proxy_pass -user site_user:site_password ftp://ftpsite/file.zip -o c:/directory/file.zip
I've tried setting environment variables for the proxy. And I know the user/pass work because I can download it through coreftp, filezilla or firefox.
Thanks for saving me from insanity,
Eric
******************************************************************************
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose,
and is protected by law. If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.
Thank you.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-29