cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp DELE command

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 8 Oct 2010 19:49:41 +0200 (CEST)

On Fri, 8 Oct 2010, Pierre-Etienne DELON wrote:

> struct curl_slist * pHeaderList = NULL;
> curl_slist_append(pHeaderList, "DELE file.txt");

You're not receiving the return code from curl_slist_append()...

> curl_easy_setopt(m_pCurl, CURLOPT_QUOTE, pHeaderList);

... so this sets a NULL pointer to the option, which has no effect.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-08