cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: SV: Canšt get thru proxy?

From: Ivansson Gunno <Gunno.Ivansson_at_msb.se>
Date: Fri, 19 Feb 2010 11:44:49 +0100

On 2010-02-18 22.51, "Daniel Stenberg" <daniel_at_haxx.se> wrote:

>
> Well, to adapt your command line to work with the proxy you MAY need to do
> something like this:
>
> curl ftp://[proxy]:8021/[remote server path] \
> -u user_at_ftp1.xxxx.se:remotepassword -v
>
> Use -v to see what curl does, then compare it with that Filezilla output you
> had from before and alter the curl command line accordingly.

I followed your advice but had to remove "[remote server path]" otherwise
that became the name of the uploaded file. This command to upload a file
seems to work. Maybe the output gives You information if it needs some
tuning:

curl ftp://myProxy.local:8021 -T
"{/Users/gunno/Documents/Tidningen_local/Skicka_VTAB/TJUG-0217-A-008-A.pdf}"
-u remoteuser_at_ftp1.xxxxxx.se:remotepassword -v

* About to connect() to myProxy.msb.local port 8021 (#0)
* Trying 192.xxxxxxxx... connected
* Connected to myProxy.local (192.xxxxxxxx) port 8021 (#0)
< 220 IronPort WSA ready.
> USER xxxxxxx_at_ftp1.xxxxxx.se
< 331 User name okay, need password.
> PASS xxxxxxx
< 230 User logged in, proceed.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> EPSV
* Connect data stream passively
< 500 Syntax error, command unrecognized.
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (192,00000000).
* Trying 192.xxxxxxxx... connected
* Connecting to 192.xxxxxxxx (192.xxxxxxxx) port 11007
> TYPE I
< 200 Type set to I.
> STOR TJUG-0217-A-008-A.pdf
< 150 File status okay; about to open data connection.
} [data not shown]
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  4 320k 0 0 4 16384 0 56970 0:00:05 --:--:-- 0:00:05
56970* Remembering we are in dir ""
< 250 Requested file action okay, completed.
100 320k 0 0 100 320k 0 508k --:--:-- --:--:-- --:--:--
890k* Connection #0 to host ksd-wsa-01.msb.local left intact

> QUIT
< 221 Service closing control connection. Logged out if appropriate.
* Closing connection #0

Thank you very much for the help.
Gunno Ivansson

MSB har ny webbadress: www.msb.se

MSB has a new web address: www.msb.se
-------------------------------------------------------------------
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 2010-02-19