cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: problem with rename a remote sFTP file

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 20 Oct 2008 10:06:31 -0700

On Mon, Oct 20, 2008 at 06:03:08PM +0800, changqin_gang wrote:
> the code below seems not to work for me,one time it turns back success
> information,bu the remote file keeps same as old, next time it shows:Unknown
> SFTP command!
>
> what's wrong?
>
> struct curl_slist * headerlist = NULL;
> CString command_renamefrom = "RNFR ";
> CString command_renameto = "RNTO ";

I suggest you read the CURLOPT_QUOTE section in the curl_easy_setopt page
for the list of valid SFTP commands.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-10-20