mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
115c9e27f5
... and make sure the code never updates 'set.prefer_ascii' as it breaks handle reuse which should use the setting as the user specified it. Added test 1569 to verify: it first makes an FTP transfer with ';type=A' and then another without type on the same handle and the second should then use binary. Previously, curl failed this. Closes #6578
74 lines
786 B
Plaintext
74 lines
786 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
PASV
|
|
RETR
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
data
|
|
to
|
|
see
|
|
that FTP
|
|
works
|
|
so does it?
|
|
</data>
|
|
<servercmd>
|
|
REPLY EPSV 500 no such command
|
|
</servercmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
FTP first type=A then regular URL
|
|
</name>
|
|
<tool>
|
|
lib1569
|
|
</tool>
|
|
<command>
|
|
"ftp://%HOSTIP:%FTPPORT/1569;type=A" ftp://%HOSTIP:%FTPPORT/1569
|
|
</command>
|
|
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
EPSV
|
|
PASV
|
|
TYPE A
|
|
RETR 1569
|
|
PASV
|
|
TYPE I
|
|
SIZE 1569
|
|
RETR 1569
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
<stdout>
|
|
data
|
|
to
|
|
see
|
|
that FTP
|
|
works
|
|
so does it?
|
|
data
|
|
to
|
|
see
|
|
that FTP
|
|
works
|
|
so does it?
|
|
</stdout>
|
|
|
|
</testcase>
|