tizen 2.3.1 release
[external/curl.git] / tests / data / test1209
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 PORT
6 RETR
7 NODATACONN
8 </keywords>
9 </info>
10 # Server-side
11 <reply>
12 <data nocheck="yes">
13 some bytes
14 </data>
15 <servercmd>
16 NODATACONN
17 </servercmd>
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 ftp
24 </server>
25  <name>
26 FTP PORT download, no data conn and no positive preliminary reply
27  </name>
28  <command>
29 --max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/1209 -P -
30 </command>
31
32 </client>
33
34 # Verify data after the test has been "shot"
35 <verify>
36 <strippart>
37 s/^EPRT \|1\|(.*)/EPRT \|1\|/
38 </strippart>
39
40 # The protocol part does not include QUIT simply because the error is
41 # CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without
42 # specificly saying for which connection it concerns, and for timeouts libcurl
43 # marks the control channel as "invalid". As this test case times out for the
44 # data connection it could still use the control channel.
45 <protocol>
46 USER anonymous\r
47 PASS ftp@example.com\r
48 PWD\r
49 EPRT |1|
50 TYPE I\r
51 SIZE 1209\r
52 RETR 1209\r
53 </protocol>
54 <errorcode>
55 28
56 </errorcode>
57 </verify>
58 </testcase>