Commit 8bc9cabd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

TODO: implement support for CURLOPT_PREQUOTE with SFTP

... also updated the CURLOPT_PREQUOTE.3 man page to mention the correct
protocol support.

Closes #1514
parent d4cc240c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -877,6 +877,10 @@ that doesn't exist on the server, just like --ftp-create-dirs.
 SHA-1 is also being deprecated these days so we should consider workign with
 SHA-1 is also being deprecated these days so we should consider workign with
 libssh2 to instead offer support for SHA-256 or similar.
 libssh2 to instead offer support for SHA-256 or similar.


17.4 Support CURLOPT_PREQUOTE

 The two other QUOTE options are supported for SFTP, but this was left out for
 unknown reasons!


18. Command line tool
18. Command line tool


+8 −5
Original line number Original line Diff line number Diff line
@@ -22,22 +22,25 @@
.\"
.\"
.TH CURLOPT_PREQUOTE 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
.TH CURLOPT_PREQUOTE 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
.SH NAME
.SH NAME
CURLOPT_PREQUOTE \- commands to run before FTP or SFTP transfer
CURLOPT_PREQUOTE \- commands to run before an FTP transfer
.SH SYNOPSIS
.SH SYNOPSIS
#include <curl/curl.h>
#include <curl/curl.h>


CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PREQUOTE,
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PREQUOTE,
                          struct curl_slist *cmds);
                          struct curl_slist *cmds);
.SH DESCRIPTION
.SH DESCRIPTION
Pass a pointer to a linked list of FTP or SFTP commands to pass to the server
Pass a pointer to a linked list of FTP commands to pass to the server after
after the transfer type is set. The linked list should be a fully valid list
the transfer type is set. The linked list should be a fully valid list of
of struct curl_slist structs properly filled in as described for
struct curl_slist structs properly filled in as described for
\fICURLOPT_QUOTE(3)\fP. Disable this operation again by setting a NULL to this
\fICURLOPT_QUOTE(3)\fP. Disable this operation again by setting a NULL to this
option.
option.

While \fICURLOPT_QOUTE(3)\fP and \fICURLOPT_POSTQUOTE(3)\fP work for SFTP,
this option does not.
.SH DEFAULT
.SH DEFAULT
NULL
NULL
.SH PROTOCOLS
.SH PROTOCOLS
FTP and SFTP
FTP
.SH EXAMPLE
.SH EXAMPLE
.nf
.nf
struct curl_slist *h = NULL;
struct curl_slist *h = NULL;