[cl-curl-devel] usage help

Richard Ray rray at mstc.state.ms.us
Wed Dec 21 14:55:22 UTC 2005


I'm trying to understand how to use curl with sbcl 0.9.7.
The only thing I've managed to get so far is a listing.

(curl:with-connection-returning-string (:reassure t)
(curl:set-option :url "ftp://user-name:password@192.168.0.1")
(curl:set-option :verbose t)
(curl:set-option :ftplistonly nil)
(curl:perform)
(pprint (curl:return-string))

I tried

(curl:with-connection-returning-string (:reassure t)
(curl:set-option :url "ftp://user-name:password@192.168.0.1")
(curl:set-option :verbose t)
(curl:set-option :quote "CWD")
(curl:perform)

and I get

* About to connect() to 192.168.0.1 port 21
*   Trying 192.168.0.1... * connected
* Connected to 192.168.0.1 (192.168.0.1) port 21
< 220 (vsFTPd 2.0.1)
> USER user-name
< 331 Please specify the password.
> PASS password
< 230 Login successful.
* We have successfully logged in
> PWD
< 257 "/home/user-name"
* Entry path is '/home/user-name'
> ]u}]VHe=
< 500 Unknown command.
* QUOT string not accepted: ]u}]VHe=
* Connection #0 to host 192.168.0.1 left intact

debugger invoked on a SIMPLE-ERROR in thread
#<THREAD "initial thread" {A91C3A9}>:
   CURL error 21 (FTP-QUOTE-ERROR)

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
   0: [ABORT] Exit debugger, returning to top level.

(CURL::RETURN-ERROR-CHECK 21)
0]

Can someone provide examples of other commands such as mkd, pwd, cwd and 
transfering files using ftp?

Thanks
Richard



More information about the Cl-curl-devel mailing list