mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
3fd80c7b59
The threee tags `<name>`, `</name>` and `<command>` were frequently used with a leading space that this removes. The reason this habbit is so widespread in testcases is probably that they have been copy and pasted. Hence, fixing them all now might curb this practice from now on. Closes #12028
53 lines
741 B
Plaintext
53 lines
741 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
PASV
|
|
RETR
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
silly data
|
|
over FTP
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<tool>
|
|
lib%TESTNUMBER
|
|
</tool>
|
|
<name>
|
|
FTP a type=A URL and CURLOPT_PORT set
|
|
</name>
|
|
|
|
# note that we need quotes around the URL below to make sure the shell doesn't
|
|
# treat the semicolon as a separator!
|
|
<command>
|
|
'ftp://%HOSTIP:23456/%TESTNUMBER;type=A' %FTPPORT
|
|
</command>
|
|
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
#
|
|
# There's no MTDM in the protocol here since this code doesn't ask for the
|
|
# time/date of the file
|
|
<verify>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
EPSV
|
|
TYPE A
|
|
RETR %TESTNUMBER
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|