curl-library
Re: Trying to download and remove files from server via vb.net -needhelp
Date: Wed, 2 Jul 2008 10:44:40 -0500
On Wed, Jul 2, 2008 at 10:22 AM, Wayne Phares <lists_at_waynesplace.com> wrote:
> >
> >
> >I don't know anything about vb.net, but I'm wondering if your CURLFTP
> handle
> >is "remembering" the QUOTE command used to delete the file:
> >
> > CURLFTP.SetOpt(CURLoption.CURLOPT_QUOTE, Slist)
> >
> >Certainly other things would seem to be persistent, such as the
> >userid/password and the progress & write functions that you set before
> going
> >into the loop.
> >
> >Ralph Mitchell
>
> I am doing "Slist.FreeAll()" after sending the DELE command via the QUOTE
> command so I assuming it is getting cleared. This appears right after the
> .preform().
OK, but the man page for the equivalent function (curl_easy_setopt) in C
says:
CURLOPT_QUOTE
Pass a pointer to a linked list of FTP commands to pass to
the server
prior to your ftp request. The linked list should be a
fully valid list of
'struct curl_slist' structs properly filled in. Use
curl_slist_append(3) to
append strings (commands) to the list, and clear the
entire list
afterwards with curl_slist_free_all(3). Disable this
operation again
by setting a NULL to this option.
Note the last sentence. If the same applies to vb.net, wouldn't you need to
do something like:
CURLFTP.SetOpt(CURLoption.CURLOPT_QUOTE, NULL)
to disable the QUOTE?? I assume "Slist.FreeAll()" is the vb.net equivalent
to "curl_slist_free_all()".
Ralph Mitchell
Received on 2008-07-02