Imported Upstream version 7.53.1
[platform/upstream/curl.git] / tests / data / test715
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 SOCKS5
12 CURLOPT_CONNECT_TO
13 </keywords>
14 </info>
15 #
16 # Server-side
17 <reply>
18 <connect>
19 HTTP/1.1 200 Connection established
20
21 </connect>
22
23 <data nocheck="yes">
24 silly content
25 </data>
26
27 <datacheck>
28 HTTP/1.1 200 Connection established
29
30 HTTP/1.1 200 Connection established
31
32 silly content
33 </datacheck>
34 </reply>
35
36 #
37 # Client-side
38 <client>
39 <server>
40 ftp
41 http-proxy
42 socks5
43 </server>
44  <name>
45 FTP fetch with --preproxy, --proxy and --connect-to
46  </name>
47  <command>
48 ftp://ftp.example.com.715/715 --connect-to ::connect.example.com.715:%FTPPORT --proxytunnel --proxy %HOSTIP:%PROXYPORT --preproxy socks5://%HOSTIP:%SOCKSPORT 
49 </command>
50 </client>
51
52 #
53 # Verify data after the test has been "shot"
54 <verify>
55 <protocol>
56 USER anonymous\r
57 PASS ftp@example.com\r
58 PWD\r
59 EPSV\r
60 TYPE I\r
61 SIZE 715\r
62 RETR 715\r
63 QUIT\r
64 </protocol>
65 </verify>
66 </testcase>