mirror of
https://github.com/curl/curl.git
synced 2026-06-02 04:24:15 +03:00
Added support for quote commands before a transfer using SFTP and test
case 614. Allow SFTP quote commands chmod, chown, chgrp to set a value of 0.
This commit is contained in:
parent
b0a4c992e7
commit
ea43bb013b
7 changed files with 102 additions and 33 deletions
22
docs/curl.1
22
docs/curl.1
|
|
@ -897,17 +897,17 @@ file will not be read and used. See the \fI-K/--config\fP for details on the
|
|||
default config file search path.
|
||||
.IP "-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
|
||||
to be exact). To make commands take place after a successful transfer, prefix
|
||||
them with a dash '-' (only the latter is supported with SFTP). To make
|
||||
commands get sent after libcurl has changed working directory, just
|
||||
before the transfer command(s), prefix the command with '+'. You may
|
||||
specify any amount 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, rename, rm, rmdir, symlink.
|
||||
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 transfer, 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,
|
||||
rename, rm, rmdir, symlink.
|
||||
|
||||
This option can be used multiple times.
|
||||
.IP "--random-file <file>"
|
||||
|
|
|
|||
|
|
@ -839,19 +839,20 @@ address. Default FTP operations are passive, and thus won't use PORT.
|
|||
You disable PORT again and go back to using the passive version by setting
|
||||
this option to NULL.
|
||||
.IP CURLOPT_QUOTE
|
||||
Pass a pointer to a linked list of FTP commands to pass to the server prior to
|
||||
your ftp request. This will be done before any other FTP commands are issued
|
||||
(even before the CWD command). The linked list should be a fully valid list of
|
||||
'struct curl_slist' structs properly filled in. Use \fIcurl_slist_append(3)\fP
|
||||
to append strings (commands) to the list, and clear the entire list afterwards
|
||||
with \fIcurl_slist_free_all(3)\fP. Disable this operation again by setting a
|
||||
NULL to this option.
|
||||
Pass a pointer to a linked list of FTP or SFTP commands to pass to
|
||||
the server prior to your ftp request. This will be done before any
|
||||
other commands are issued (even before the CWD command for FTP). The
|
||||
linked list should be a fully valid list of 'struct curl_slist' structs
|
||||
properly filled in with text strings. Use \fIcurl_slist_append(3)\fP
|
||||
to append strings (commands) to the list, and clear the entire list
|
||||
afterwards with \fIcurl_slist_free_all(3)\fP. Disable this operation
|
||||
again by setting a NULL to this option.
|
||||
.IP CURLOPT_POSTQUOTE
|
||||
Pass a pointer to a linked list of FTP commands to pass to the server after
|
||||
your ftp transfer request. The linked list should be a fully valid list of
|
||||
struct curl_slist structs properly filled in as described for
|
||||
\fICURLOPT_QUOTE\fP. Disable this operation again by setting a NULL to this
|
||||
option.
|
||||
Pass a pointer to a linked list of FTP or SFTP commands to pass to the
|
||||
server after your ftp transfer request. The linked list should be a
|
||||
fully valid list of struct curl_slist structs properly filled in as
|
||||
described for \fICURLOPT_QUOTE\fP. Disable this operation again by
|
||||
setting a NULL to this option.
|
||||
.IP CURLOPT_PREQUOTE
|
||||
Pass a pointer to a linked list of FTP commands to pass to the server after
|
||||
the transfer type is set. The linked list should be a fully valid list of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue