lh | 9ed821d | 2023-04-07 01:36:19 -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 | <server> | ||||
24 | ftp | ||||
25 | socks5 | ||||
26 | </server> | ||||
27 | <name> | ||||
28 | FTP fetch with --proxy set to socks5:// and with --connect-to | ||||
29 | </name> | ||||
30 | <command> | ||||
31 | ftp://ftp.example.com/713 --connect-to ::%HOSTIP:%FTPPORT --proxy socks5://%HOSTIP:%SOCKSPORT | ||||
32 | </command> | ||||
33 | </client> | ||||
34 | |||||
35 | # | ||||
36 | # Verify data after the test has been "shot" | ||||
37 | <verify> | ||||
38 | <protocol> | ||||
39 | USER anonymous | ||||
40 | PASS ftp@example.com | ||||
41 | PWD | ||||
42 | EPSV | ||||
43 | TYPE I | ||||
44 | SIZE 713 | ||||
45 | RETR 713 | ||||
46 | QUIT | ||||
47 | </protocol> | ||||
48 | </verify> | ||||
49 | </testcase> |