test EPSV and PASV response handling when they get well-formated data back
[platform/upstream/curl.git] / tests / data / test237
1 # Server-side
2 <reply>
3 </reply>
4
5 # Client-side
6 <client>
7 <server>
8 ftp
9 </server>
10  <name>
11 FTP getting bad host in 227-response to PASV
12  </name>
13  <command>
14 ftp://%HOSTIP:%FTPPORT/237 --disable-epsv
15 </command>
16 <file name="log/ftpserver.cmd">
17 REPLY PASV 227 Entering Passiv Mode (1218,91,256,127,127,127)
18 </file>
19 </client>
20
21 # Verify data after the test has been "shot"
22 <verify>
23 # curl: (15) Can't resolve new host 1218.91.256.127:32639
24 # 15 => CURLE_FTP_CANT_GET_HOST
25 <errorcode>
26 15
27 </errorcode>
28 <protocol>
29 USER anonymous\r
30 PASS curl_by_daniel@haxx.se\r
31 PWD\r
32 PASV\r
33 </protocol>
34 </verify>