lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | FTP | ||||
5 | PASV | ||||
6 | CURLOPT_PORT | ||||
7 | </keywords> | ||||
8 | </info> | ||||
9 | # | ||||
10 | # Server-side | ||||
11 | <reply> | ||||
12 | <data> | ||||
13 | line 1 | ||||
14 | line 2 | ||||
15 | last line | ||||
16 | </data> | ||||
17 | <datacheck> | ||||
18 | [OPEN] counter: 1 | ||||
19 | [OPEN] counter: 2 | ||||
20 | line 1 | ||||
21 | line 2 | ||||
22 | last line | ||||
23 | [CLOSE] counter: 2 | ||||
24 | [CLOSE] counter: 1 | ||||
25 | </datacheck> | ||||
26 | </reply> | ||||
27 | |||||
28 | # | ||||
29 | # Client-side | ||||
30 | <client> | ||||
31 | <server> | ||||
32 | ftp | ||||
33 | </server> | ||||
34 | <tool> | ||||
35 | lib585 | ||||
36 | </tool> | ||||
37 | <name> | ||||
38 | FTP and open/close socket callbacks | ||||
39 | </name> | ||||
40 | <command> | ||||
41 | ftp://%HOSTIP:%FTPPORT/586 | ||||
42 | </command> | ||||
43 | </client> | ||||
44 | |||||
45 | # | ||||
46 | # Verify data after the test has been "shot" | ||||
47 | <verify> | ||||
48 | <protocol> | ||||
49 | USER anonymous | ||||
50 | PASS ftp@example.com | ||||
51 | PWD | ||||
52 | EPSV | ||||
53 | TYPE I | ||||
54 | SIZE 586 | ||||
55 | RETR 586 | ||||
56 | QUIT | ||||
57 | </protocol> | ||||
58 | </verify> | ||||
59 | </testcase> |