mirror of
https://github.com/moparisthebest/curl
synced 2024-11-08 18:45:05 -05:00
296ebf382c
on FTP errors in the transient 5xx range. Transient FTP errors are in the 4xx range. The code itself only tried on 5xx errors that occured _at login_. Now the retry code retries on all FTP transfer failures that ended with a 4xx response. (http://curl.haxx.se/bug/view.cgi?id=2911279)
36 lines
512 B
Plaintext
36 lines
512 B
Plaintext
<testcase>
|
|
# Server-side
|
|
<reply>
|
|
<servercmd>
|
|
REPLY PASS 430 temporarily not available
|
|
</servercmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
FTP transient error, retry request once
|
|
</name>
|
|
<command>
|
|
ftp://%HOSTIP:%FTPPORT/196 --retry 1
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# 67 is CURLE_LOGIN_DENIED
|
|
<errorcode>
|
|
67
|
|
</errorcode>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|