cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with FTP url with CURLOPT_CUSTOMREQUEST

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Jan 2003 12:10:40 +0100 (MET)

On Tue, 31 Dec 2002, Uday Singh wrote:

> I am trying to using the libcurl to perform FTP related stuff. In the
> processing I was trying to MKD (make a directory) using the CUSTOMREQUEST
> feature.

Don't use the CUSTOMREQUEST option for that. Use the CURLOPT_QUOTE option
series instead.

> The return code from the perform is 19 (CURLE_FTP_COULDNT_RETR_FILE). But
> when I go look at the ftp server it has infact created that directory.

Right, because you replaced the RETR command with MKD and then of course curl
couldn't get the file...

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-01-06