curl-users
Re: FTP proxy options
Date: Fri, 25 Apr 2008 11:40:21 +0200 (CEST)
On Fri, 25 Apr 2008, gunno.ivansson_at_srv.se wrote:
> I am a Mac user using curl to upload files. Our IT-people recently installed
> a proxy server, which caused me some problems. I read the man pages and came
> up with a solution that involved the creation of a .curlrc configuration
> file where I specified the proxy (proxy = myProxy:8080). The command looks
> like this:
>
> curl --proxy-user myUsername:myPassWord -T "{/path/to/myFile}" -u
> ftpUser:ftpPassWord ftp://ftp.ourPrintshop.se/
>
> I would prefer to include the proxy specification in the command. I tried
> several ways but none succeeded. How can I include the proxy specification
> in the command?
Just use "--proxy myProxy:8080" (or even "-x myProxy:8080").
The config file's "key words" are simply the command line switches but without
the double dashes and no equals sign. So "proxy = mooo" equals "--proxy
mooo"...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-04-25