cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Issue with libcurlnet: Slist

From: Jeff Phillips <jeff_at_jeffp.net>
Date: Mon, 23 May 2005 16:04:08 -0700 (PDT)

Chothu,

Off of the top of my head, try reversing the order of
the commands -- if I recall, the internal
implementation of Slist.Append() updates the FRONT of
a curl_slist, so you may be seeing last-in, first-out
behavior.

Take care,
Jeff

--- JGP <chothu_at_hotmail.com> wrote:
> Hi,
>
> I'm a curl newbie trying to get libcurlnet to work
> with an ftp server using
> implicit SSL.
> I'm able to connect, see a list, upload a file etc.
>
> The problem is that when I try to get the following
> code to run in Visual
> Studio.NET 2003;
>
> slist3.Append("cwd
> /Distribution/edi/Test");
> slist3.Append("RNFR (nil)");
> slist3.Append("RNTO testabc.txt");
>
> ..it seems to execute only the last command in
> the slist. It ignores the
> first two commands. This ofcourse results in a
> CURLE_FTP_QUOTE_ERROR.
> I unfortunately don't have Visual C++ on my machine
> so I cannot really look
> into or modify the libcurl source code. Any help
> from Jeff or others is
> appreciated.
>
> Thanks,
> Chothu
>
>
Received on 2005-05-24