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