mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:03:39 +03:00
Wesley Laxton's CURLOPT_PREQUOTE work
This commit is contained in:
parent
ea8476a2dc
commit
80b004a57d
5 changed files with 35 additions and 6 deletions
12
lib/ftp.c
12
lib/ftp.c
|
|
@ -1618,6 +1618,12 @@ CURLcode ftp_perform(struct connectdata *conn)
|
|||
if(result)
|
||||
return result;
|
||||
|
||||
/* Send any PREQUOTE strings after transfer type is set? (Wesley Laxton)*/
|
||||
if(data->set.prequote) {
|
||||
if ((result = ftp_sendquote(conn, data->set.prequote)) != CURLE_OK)
|
||||
return result;
|
||||
}
|
||||
|
||||
if(conn->resume_from) {
|
||||
/* we're about to continue the uploading of a file */
|
||||
/* 1. get already existing file's size. We use the SIZE
|
||||
|
|
@ -1803,6 +1809,12 @@ CURLcode ftp_perform(struct connectdata *conn)
|
|||
if(result)
|
||||
return result;
|
||||
|
||||
/* Send any PREQUOTE strings after transfer type is set? (Wesley Laxton)*/
|
||||
if(data->set.prequote) {
|
||||
if ((result = ftp_sendquote(conn, data->set.prequote)) != CURLE_OK)
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Attempt to get the size, it'll be useful in some cases: for resumed
|
||||
downloads and when talking to servers that don't give away the size
|
||||
in the RETR response line. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue