xref: /curl/tests/data/test1217 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5PORT
6NLST
7--data-binary
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13contents
14</data>
15<servercmd>
16REPLY PWD 257 there is rubbish all over "/this/is/the/path"
17</servercmd>
18</reply>
19
20# Client-side
21<client>
22<server>
23ftp
24</server>
25<name>
26FTP with rubbish before name in 257-response
27</name>
28<command>
29ftp://%HOSTIP:%FTPPORT/get/file/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/get/file/again/%TESTNUMBER --ftp-method singlecwd
30</command>
31</client>
32
33# Verify data after the test has been "shot"
34<verify>
35<strip>
36QUIT
37</strip>
38# Strip all valid kinds of PORT and EPRT that curl can send
39<strip>
40^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
41^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
42</strip>
43<protocol>
44USER anonymous
45PASS ftp@example.com
46PWD
47CWD get/file
48EPSV
49TYPE I
50SIZE %TESTNUMBER
51RETR %TESTNUMBER
52CWD /this/is/the/path
53CWD get/file/again
54EPSV
55SIZE %TESTNUMBER
56RETR %TESTNUMBER
57QUIT
58</protocol>
59</verify>
60</testcase>
61