xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
2 | #based off test 712 | ||||
3 | <info> | ||||
4 | <keywords> | ||||
5 | FTP | ||||
6 | PASV | ||||
7 | RETR | ||||
8 | SOCKS5 | ||||
9 | CURLOPT_CONNECT_TO | ||||
10 | </keywords> | ||||
11 | </info> | ||||
12 | # | ||||
13 | # Server-side | ||||
14 | <reply> | ||||
15 | <data> | ||||
16 | silly content | ||||
17 | </data> | ||||
18 | </reply> | ||||
19 | |||||
20 | # | ||||
21 | # Client-side | ||||
22 | <client> | ||||
23 | <features> | ||||
24 | proxy | ||||
25 | </features> | ||||
26 | <server> | ||||
27 | ftp | ||||
28 | socks5 | ||||
29 | </server> | ||||
30 | <name> | ||||
31 | FTP fetch with --proxy set to socks5:// and with --connect-to | ||||
32 | </name> | ||||
33 | <command> | ||||
34 | ftp://ftp.example.com/%TESTNUMBER --connect-to ::%HOSTIP:%FTPPORT --proxy socks5://%HOSTIP:%SOCKSPORT | ||||
35 | </command> | ||||
36 | </client> | ||||
37 | |||||
38 | # | ||||
39 | # Verify data after the test has been "shot" | ||||
40 | <verify> | ||||
41 | <protocol> | ||||
42 | USER anonymous | ||||
43 | PASS ftp@example.com | ||||
44 | PWD | ||||
45 | EPSV | ||||
46 | TYPE I | ||||
47 | SIZE %TESTNUMBER | ||||
48 | RETR %TESTNUMBER | ||||
49 | QUIT | ||||
50 | </protocol> | ||||
51 | </verify> | ||||
52 | </testcase> |