f54a30af658ea54642e49ee10de4f3308b214d47
[platform/upstream/curl.git] / tests / data / test2047
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 IDN
8 followlocation
9 --write-out
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 <data nocheck="yes">
17 HTTP/1.1 302 OK swsbounce
18 Date: Thu, 09 Nov 2010 14:49:00 GMT
19 Content-Length: 9
20 Content-Type: text/plain
21 Location: ./20470001
22
23 redirect
24 </data>
25 <data1 nocheck="yes">
26 HTTP/1.1 200 OK
27 Date: Thu, 09 Nov 2010 14:49:00 GMT
28 Content-Length: 3
29 Content-Type: text/plain; charset=us-ascii
30
31 OK
32 </data1>
33 </reply>
34
35 #
36 # Client-side
37 <client>
38 <server>
39 http
40 </server>
41 <features>
42 idn
43 </features>
44 <setenv>
45 CHARSET=UTF-8
46 LANG=en_US.UTF-8
47 </setenv>
48  <name>
49 Connection re-use with IDN host name over HTTP proxy
50  </name>
51
52  <command>
53 http://åäö.se/2047 -x %HOSTIP:%HTTPPORT -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L
54 </command>
55 </client>
56
57 #
58 # Verify data after the test has been "shot"
59 <verify>
60 <strip>
61 ^User-Agent:.*
62 </strip>
63 <protocol>
64 GET http://xn--4cab6c.se/2047 HTTP/1.1\r
65 Host: xn--4cab6c.se\r
66 Accept: */*\r
67 Proxy-Connection: Keep-Alive\r
68 \r
69 GET http://xn--4cab6c.se/20470001 HTTP/1.1\r
70 Host: xn--4cab6c.se\r
71 Accept: */*\r
72 Proxy-Connection: Keep-Alive\r
73 \r
74 </protocol>
75
76 <stdout>
77 HTTP/1.1 302 OK swsbounce
78 Date: Thu, 09 Nov 2010 14:49:00 GMT
79 Content-Length: 9
80 Content-Type: text/plain
81 Location: ./20470001
82
83 HTTP/1.1 200 OK
84 Date: Thu, 09 Nov 2010 14:49:00 GMT
85 Content-Length: 3
86 Content-Type: text/plain; charset=us-ascii
87
88 OK
89 1
90 1
91 3
92 http://xn--4cab6c.se/20470001
93 text/plain; charset=us-ascii
94 200
95 </stdout>
96
97 </verify>
98 </testcase>