2009/10/13 Xu, Qiang (FXSGSC) <[email protected]>:
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Michael Wood
>> Sent: Tuesday, October 13, 2009 5:24 PM
>> To: libcurl development
>> Subject: Re: libcurl and libssh2
>>
>> See the "-Q" option in the curl man page and try it with the
>> "--libcurl" option.
>
> Here is what I get from man page:
> ===================================================
>       -Q/--quote <command>
>              (FTP)  Send an arbitrary command to the remote FTP server. Quote
[...]
> ===================================================
> But since SFTP is not FTP, can this option be used in SFTP transfer?

Upgrade your version of cURL.  Mine says:

       -Q/--quote <command>
              (FTP/SFTP) Send an arbitrary command to the remote FTP  or  SFTP
              server.  Quote  commands  are sent BEFORE the transfer is taking
              place (just after the initial PWD command in an FTP transfer, to
              be exact). To make commands take place after a successful trans‐
              fer, prefix them with a dash ’-’.  To  make  commands  get  sent
              after  libcurl  has  changed  working directory, just before the
              transfer command(s), prefix the command with ’+’ (this  is  only
              supported  for  FTP). You may specify any number of commands. If
              the server returns failure for one of the commands,  the  entire
              operation  will  be aborted. You must send syntactically correct
              FTP commands as RFC959 defines to FTP servers,  or  one  of  the
              following commands (with appropriate arguments) to SFTP servers:
              chgrp, chmod, chown, ln, mkdir, pwd, rename, rm, rmdir, symlink.

              This option can be used multiple times.

-- 
Michael Wood <[email protected]>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to