cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: mkdir and then put

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 Jan 2002 10:14:54 +0100 (MET)

On Thu, 17 Jan 2002, raoul cridlig wrote:

> When I call remote mkdir and then upload in the same session (

Will you *never* learn, even though I say this in just about every single
reply to you? Once again:

 If you provide a protocol dump as produced with CURLOPT_VERBOSE set to TRUE,
 we will understand better, come to quicker conclusions and we will provide
 better answers.

> remote MKDIR

[snip]

> I get the message: QUOT string not accepted

Check out the protocol dump you didn't include here. It should tell you
pretty much why this happens. The source code in lib/ftp.c (ftp_sendquote())
is also pretty descriptive.

That error message is returned because the FTP server sent back an error
message to your quote command.

Judging from your text above, and guessing freely, you didn't use the proper
"mkdir" command. mkdir in FTP language is spelled "MKD" as RFC959 spells out.

> So is it possible to easy_perform twice in a session ?

Yes, once the first *perform() is done, you can call it again and again and
again. Just make sure to set the proper options in between the function
calls, otherwise the former options will be used.

The most recent version of "The Guide", the libcurl programming tutorial is
now found here: http://curl.haxx.se/libcurl/c/the-guide.html

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-18