Add support for customizing FTP transfer aborted status codes. GitHub PR #51.
This is connected with another PR I did a few months ago. We hit yet another FTP that returns some strange status code when prematurely closing a stream - this one returns 550.
This PR makes these status codes that should be treated as OK configurable with a default of 426 and 550 to handle such cases like the ones we've encountered.
P.S. Here is output from a curl -v --range 0-499 "ftp://user:firstname.lastname@example.org/dir/file.mpg" --output - command:
> RETR file.mpg
< 125 Data connection already open; Transfer starting.
- Maxdownload = 500
- Getting file with size: 500
- Remembering we are in dir "dir/"
< 550 Data channel was closed by ABOR command from client.
- partial download completed, closing connection
< 226 ABOR command successful.
- Closing connection 0
P.S.2 This happens on a "Microsoft FTP Service":
220 Microsoft FTP Service
This is from the curl log.