• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2#based off test 712
3<info>
4<keywords>
5FTP
6PASV
7RETR
8HTTP
9HTTP CONNECT
10proxytunnel
11SOCKS5
12CURLOPT_CONNECT_TO
13</keywords>
14</info>
15#
16# Server-side
17<reply>
18<connect>
19HTTP/1.1 200 Connection established
20
21</connect>
22
23<data nocheck="yes">
24silly content
25</data>
26
27<datacheck>
28HTTP/1.1 200 Connection established
29
30HTTP/1.1 200 Connection established
31
32silly content
33</datacheck>
34</reply>
35
36#
37# Client-side
38<client>
39<server>
40ftp
41http-proxy
42socks5
43</server>
44<features>
45http
46proxy
47</features>
48 <name>
49FTP fetch with --preproxy, --proxy and --connect-to
50 </name>
51 <command>
52ftp://ftp.example.com.%TESTNUMBER/%TESTNUMBER --connect-to ::connect.example.com.%TESTNUMBER:%FTPPORT --proxytunnel --proxy %HOSTIP:%PROXYPORT --preproxy socks5://%HOSTIP:%SOCKSPORT
53</command>
54</client>
55
56#
57# Verify data after the test has been "shot"
58<verify>
59<protocol>
60USER anonymous
61PASS ftp@example.com
62PWD
63EPSV
64TYPE I
65SIZE %TESTNUMBER
66RETR %TESTNUMBER
67QUIT
68</protocol>
69</verify>
70</testcase>
71