78515231979788ac6c7d3b59580094cde592333a
[platform/upstream/curl.git] / tests / data / test563
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 <server>
26 ftp
27 http
28 </server>
29 <tool>
30 lib562
31 </tool>
32  <name>
33 FTP type=A URL and CURLOPT_PORT set and proxy
34  </name>
35
36 <setenv>
37 ftp_proxy=http://%HOSTIP:%HTTPPORT/
38 </setenv>
39 # note that we need quotes around the URL below to make sure the shell doesn't
40 # treat the semicolon as a separator!
41  <command>
42 "ftp://%HOSTIP:23456/563;type=A" %FTPPORT
43 </command>
44
45 </client>
46
47 # Verify data after the test has been "shot"
48 <verify>
49 <protocol>
50 GET FTP://%HOSTIP:%FTPPORT/563;type=A HTTP/1.1\r
51 Host: %HOSTIP:%FTPPORT\r
52 Accept: */*\r
53 Proxy-Connection: Keep-Alive\r
54 \r
55 </protocol>
56 </verify>
57 </testcase>