Imported Upstream version 7.59.0
[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
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Server: test-server/fake
16 Accept-Ranges: bytes
17 Content-Length: 6
18
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
51 Host: %HOSTIP:23456
52 Accept: */*
53 Proxy-Connection: Keep-Alive
54
55 </protocol>
56 </verify>
57 </testcase>