Imported Upstream version 7.48.0
[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 </setenv>
47  <name>
48 Connection re-use with IDN host name over HTTP proxy
49  </name>
50
51  <command>
52 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
53 </command>
54 </client>
55
56 #
57 # Verify data after the test has been "shot"
58 <verify>
59 <strip>
60 ^User-Agent:.*
61 </strip>
62 <protocol>
63 GET http://xn--4cab6c.se/2047 HTTP/1.1\r
64 Host: xn--4cab6c.se\r
65 Accept: */*\r
66 \r
67 GET http://xn--4cab6c.se/20470001 HTTP/1.1\r
68 Host: xn--4cab6c.se\r
69 Accept: */*\r
70 \r
71 </protocol>
72
73 <stdout>
74 HTTP/1.1 302 OK swsbounce
75 Date: Thu, 09 Nov 2010 14:49:00 GMT
76 Content-Length: 9
77 Content-Type: text/plain
78 Location: ./20470001
79
80 HTTP/1.1 200 OK
81 Date: Thu, 09 Nov 2010 14:49:00 GMT
82 Content-Length: 3
83 Content-Type: text/plain; charset=us-ascii
84
85 OK
86 1
87 1
88 3
89 http://xn--4cab6c.se/20470001
90 text/plain; charset=us-ascii
91 200
92 </stdout>
93
94 </verify>
95 </testcase>