cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

curl-7.18.2 ftp upload issues

From: Jeff Weber <jweber_at_amsc.com>
Date: Wed, 11 Jun 2008 11:02:29 -0500

I am unable to get ftp uploads to work with 7.18.2. These worked fine with
7.18.1. Below is debug output from curl command line tool, first using
curl-7.18.2, then using curl-7.18.1. No other config changes.

# /usr/local/scp/bin/curl --version
curl 7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7g zlib/1.2.3
c-ares/1.5.1 libidn/0.5.17 libssh2/0.18
Protocols: ftp http file https ftps scp sftp
Features: AsynchDNS Debug IDN Largefile NTLM SSL libz

/usr/local/scp/bin/curl --netrc-optional --verbose -T
"{/etc/termcap,/etc/passwd}" ftp://myhost:22/staging/
* About to connect() to myhost port 22 (#0)
* Connection time-out
* Closing connection #0

curl: (28) Connection time-out
* About to connect() to myhost port 22 (#0)
* Trying xxx.xxx.xxx.xxx... connected
* Connected to myhost (xxx.xxx.xxx.xxx) port 22 (#0)
* FTP 0x8080df8 state change from STOP to WAIT220
* FTP response timeout
* Closing connection #0

curl: (28) FTP response timeout

<revert to curl-7.18.1 here>

# /usr/local/scp/bin/curl --version
curl 7.18.1 (i686-pc-linux-gnu) libcurl/7.18.1 OpenSSL/0.9.7g zlib/1.2.3
c-ares/1.5.1 libidn/0.5.17 libssh2/0.18
Protocols: ftp http file https ftps scp sftp
Features: AsynchDNS Debug IDN Largefile NTLM SSL libz

/usr/local/scp/bin/curl --netrc-optional --verbose -T
"{/etc/termcap,/etc/passwd}" ftp://myhost:22/staging/
* About to connect() to myhost port 22 (#0)
* Trying xxx.xxx.xxx.xxx... connected
* Connected to myhost (xxx.xxx.xxx.xxx) port 22 (#0)
* FTP 0x8080ca8 state change from STOP to WAIT220
< 220 Microsoft FTP Service
> USER myuser
* FTP 0x8080ca8 state change from WAIT220 to USER
< 331 Password required for myuser.
> PASS mypassword
* FTP 0x8080ca8 state change from USER to PASS
< 230 User myuser logged in.
> PWD
* FTP 0x8080ca8 state change from PASS to PWD
< 257 "/" is current directory.
* Entry path is '/'
* FTP 0x8080ca8 state change from PWD to STOP
* protocol connect phase DONE
* DO phase starts
> CWD staging
* FTP 0x8080ca8 state change from STOP to CWD
< 250 CWD command successful.
> EPSV
* FTP 0x8080ca8 state change from CWD to PASV
* Connect data stream passively
< 500 'EPSV': command not understood
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (xxx.xxx.xxx.xxx,18,46).
* Trying xxx.xxx.xxx.xxx... connected
* Connecting to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 4654
* FTP 0x8080ca8 state change from PASV to STOP
* DO phase is complete
* DO-MORE phase starts
> TYPE I
* FTP 0x8080ca8 state change from STOP to STOR_TYPE
< 200 Type set to I.
> STOR termcap
* FTP 0x8080ca8 state change from STOR_TYPE to STOR
< 125 Data connection already open; Transfer starting.
* FTP 0x8080ca8 state change from STOR to STOP
* DO-MORE phase ends with 0
} [data not shown]
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 8969 0 0 100 8969 0 23130 --:--:-- --:--:-- --:--:-- 23130*
Remembering we are in dir "staging/"
< 226 Transfer complete.
100 8969 0 0 100 8969 0 21662 --:--:-- --:--:-- --:--:-- 0*
Connection #0 to host myhost left intact

* Re-using existing connection! (#0) with host myhost
* Connected to myhost (xxx.xxx.xxx.xxx) port 22 (#0)
* Request has same path as previous transfer
* DO phase starts
> PASV
* FTP 0x8080ca8 state change from STOP to PASV
* Connect data stream passively
< 227 Entering Passive Mode (xxx.xxx.xxx.xxx,18,47).
* Trying xxx.xxx.xxx.xxx... connected
* Connecting to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 4655
* FTP 0x8080ca8 state change from PASV to STOP
* DO phase is complete
* DO-MORE phase starts
* FTP 0x8080ca8 state change from STOP to STOR_TYPE
> STOR passwd
* FTP 0x8080ca8 state change from STOR_TYPE to STOR
< 125 Data connection already open; Transfer starting.
* FTP 0x8080ca8 state change from STOR to STOP
* DO-MORE phase ends with 0
} [data not shown]
* Remembering we are in dir "staging/"
< 226 Transfer complete.
100 696 0 0 100 696 0 19468 --:--:-- --:--:-- --:--:-- 19468*
Connection #0 to host myhost left intact

> QUIT
* FTP 0x8080ca8 state change from STOP to QUIT
< 221
* FTP 0x8080ca8 state change from QUIT to STOP
* Closing connection #0

“This e-mail message and any attachments are confidential and may be privileged.
If you are not the intended recipient please notify American Superconductor Corporation
immediately by replying to this message or by sending a message to postmaster_at_amsc.com
and destroy all copies of this message and any attachments.
Thank you.”
Received on 2008-06-11

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET