cURL / Mailing Lists / curl-users / Single Mail

curl-users

libcurl FTP Quote Option

From: Steve Smith <ssmi_at_lle.rochester.edu>
Date: Mon, 02 Apr 2007 14:45:08 -0400
Hello. Although the documentation covers this pretty well, I can't get FTP quoting to work. Here's a simple session that tries quoting the FTP command 'bin':

$ curl -v ftp://name:password@123.456.7.89 -Q'bin'
* About to connect() to
123.456.7.89 port 21 (#0)
*   Trying
123.456.7.89... connected
* Connected to
123.456.7.89 (123.456.7.89) port 21 (#0)
* FTP 0xadf00 state change from STOP to WAIT220
< 220 PicSight FTP Server ready.
> USER name
* FTP 0xadf00 state change from WAIT220 to USER
< 331 User name okay, need password.
> PASS password
* FTP 0xadf00 state change from USER to PASS
< 230 User logged in, proceed.
> PWD
* FTP 0xadf00 state change from PASS to PWD
< 257 "/" is current directory.
* Entry path is '/'
* FTP 0xadf00 state change from PWD to STOP
* protocol connect phase DONE
* DO phase starts
> bin
* FTP 0xadf00 state change from STOP to QUOTE
< 502 Command not implemented.
* QUOT command failed with 502
* DO phase is complete
* Closing connection #0
curl: (21) QUOT command failed with 502

I have tried other quoted commands as well (ls, get), but without luck. Thanks for your help!
- Steve
Received on 2007-04-02