Git init
[external/curl.git] / tests / data / test238
1 <testcase>
2 # Server-side
3 <reply>
4 <servercmd>
5 REPLY EPSV 229 Entering Passiv Mode (|||1000000|)
6 REPLY PASV 227 Entering Passiv Mode (1216,256,2,127,127,127)
7 </servercmd>
8 </reply>
9
10 # Client-side
11 <client>
12 <server>
13 ftp
14 </server>
15  <name>
16 FTP getting bad port in response to EPSV and in response to PASV
17  </name>
18  <command>
19 ftp://%HOSTIP:%FTPPORT/238
20 </command>
21 </client>
22
23 # Verify data after the test has been "shot"
24 <verify>
25 # curl: (15) Can't resolve new host 1216.256.2.127:32639
26 # 15 => CURLE_FTP_CANT_GET_HOST
27 # some systems just don't fail on the illegal host name/address but instead
28 # moves on and attempt to connect to... yes, to what?
29 # 7= CURLE_COULDNT_CONNECT
30 <errorcode>
31 7, 15
32 </errorcode>
33 <protocol>
34 USER anonymous\r
35 PASS ftp@example.com\r
36 PWD\r
37 EPSV\r
38 PASV\r
39 </protocol>
40 </verify>
41 </testcase>