a2adbbb3fff90a192e24590f0026dbc9893e2917
[platform/upstream/curl.git] / tests / data / test1106
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 CURLOPT_PORT
6 HTTP proxy
7 </keywords>
8 </info>
9
10 # Server-side
11 <reply>
12 <data nocheck="yes">
13 HTTP/1.1 200 OK swsclose\r
14 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
15 Server: test-server/fake\r
16 Accept-Ranges: bytes\r
17 Content-Length: 6\r
18 \r
19 hello
20 </data>
21 </reply>
22
23 # Client-side
24 <client>
25 <features>
26 ftp
27 </features>
28 <server>
29 http
30 </server>
31  <name>
32 FTP URL and with ftp_proxy environment variable set
33  </name>
34
35 <setenv>
36 ftp_proxy=http://%HOSTIP:%HTTPPORT/
37 </setenv>
38  <command>
39 ftp://%HOSTIP:23456/1106
40 </command>
41
42 </client>
43
44 # Verify data after the test has been "shot"
45 <verify>
46 <strip>
47 ^User-Agent:.*
48 </strip>
49 <protocol>
50 GET ftp://%HOSTIP:23456/1106 HTTP/1.1\r
51 Host: %HOSTIP:23456\r
52 Accept: */*\r
53 \r
54 </protocol>
55 </verify>
56 </testcase>