cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reset POSTQUOTE option

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 12 Nov 2001 09:13:13 +0100 (MET)

On Fri, 9 Nov 2001, Cadime wrote:

> I hava a curl ftp connection with a client, that will be used for many
> purposes.
>
> First, I do a .curl_easy_perform that do a ftp tranfer and a POSTQUOTE
> operation.
>
> Next time, I want to do another curl_easy_perform without POSTQUOTE
> option set.
>
> How can I reset,it?
> I tried clearing the ftp commands list, but it still gets a ""(empty)
> command and returns an error(CURLE_FTP_QUOTE_ERROR)

You should be able to just set the list to a NULL:

        curl_easy_setopt(handle, CURLOPT_POSTQUOTE, NULL);

Did you try that?

You should of course cleanup the list properly too.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-11-12