cURL / Mailing Lists / curl-users / Single Mail

curl-users

how to FTP upload a whole directory?

From: jar123 <jar123_at_o2.pl>
Date: Wed, 30 Dec 2009 23:51:44 +0100

Hello,

How can I upload a whole directory?
I use curl for windows.

When I type this command:
curl -v -P- -u xxx:xxx ftp://xxx.xxx.xxx.xxx/ -T *.dll
I receive the following output:

* About to connect() to xxx.xxx.xxx.xxx port 21 (#0)
* Trying xxx.xxx.xxx.xxx... connected
* Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 21 (#0)
< 220-FileZilla Server version 0.9.33 beta
< 220-written by Tim Kosse (Tim.Kosse_at_gmx.de)
< 220 Please visit http://sourceforge.net/projects/filezilla/
> USER xxx
< 331 Password required for grawil
> PASS xxx
< 230 Logged on
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> EPRT |1|xxx.xxx.xxx.xxx|4718|
< 200 Port command successful
* Connect data stream actively
> TYPE I
< 200 Type set to I
> STOR libcurl.dll
< 150 Opening data channel for file transfer.
* Connection accepted from server
} [data not shown]
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  5 275k 0 0 5 16384 0 1000k --:--:-- --:--:-- --:--:-- 1000k*
Remembering we are in dir ""
< 226 Transfer OK
100 275k 0 0 100 275k 0 1751k --:--:-- --:--:-- --:--:-- 1836k*
Connection #0 to host xxx.xxx.xxx.xxx left intact

* Could not resolve host: libeay32.dll; Host not found
* Closing connection #1
curl: (6) Could not resolve host: libeay32.dll; Host not found
* Could not resolve host: libssl32.dll; Host not found
* Closing connection #1
curl: (6) Could not resolve host: libssl32.dll; Host not found
> QUIT
< 221 Goodbye
* Closing connection #0

Only first file (out of three) gets uploaded.
It seems to me that curl tries to open more connections which is not possible in this case??

Thank you in advance for help!
Jarek

-------------------------------------------------------------------
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 2009-12-30