mirror of
https://github.com/curl/curl.git
synced 2026-07-25 13:47:23 +03:00
- The libcurl FTP code now returns CURLE_REMOTE_FILE_NOT_FOUND error when SIZE
gets a 550 response back for the cases where a download (or NOBODY) is wanted. It still allows a 550 as response if the SIZE is used as part of an upload process (like if resuming an upload is requested and the file isn't there before the upload). I also modified the FTP test server and a few test cases accordingly to match this modified behavior.
This commit is contained in:
parent
beb14ca6d6
commit
038542ea3e
8 changed files with 22 additions and 9 deletions
|
|
@ -9,6 +9,9 @@ FAILURE
|
|||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<size>
|
||||
1
|
||||
</size>
|
||||
<servercmd>
|
||||
REPLY RETR 314 bluah you f00l!
|
||||
REPLY EPSV 314 bluah you f00l!
|
||||
|
|
|
|||
|
|
@ -45,10 +45,8 @@ CWD path
|
|||
EPSV
|
||||
TYPE I
|
||||
SIZE 533
|
||||
RETR 533
|
||||
EPSV
|
||||
SIZE 533
|
||||
RETR 533
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ CWD path
|
|||
EPSV
|
||||
TYPE I
|
||||
SIZE 534
|
||||
RETR 534
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ works
|
|||
</data>
|
||||
|
||||
<servercmd>
|
||||
REPLY RETR 550 the file doesn't exist
|
||||
COUNT RETR 1
|
||||
REPLY SIZE 550 Can't check for file existence
|
||||
COUNT SIZE 1
|
||||
</servercmd>
|
||||
|
|
@ -52,7 +50,6 @@ CWD path
|
|||
EPSV
|
||||
TYPE I
|
||||
SIZE 546
|
||||
RETR 546
|
||||
EPSV
|
||||
SIZE 546
|
||||
RETR 546
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue