Imported Upstream version 7.53.1
[platform/upstream/curl.git] / tests / data / test165
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 IDN
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <data>
15 HTTP/1.1 200 OK\r
16 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
17 Server: test-server/fake swsclose\r
18 Content-Type: text/html\r
19 Funny-head: yesyes\r
20 \r
21 </data>
22 </reply>
23
24 #
25 # Client-side
26 <client>
27 <server>
28 http
29 </server>
30 <features>
31 idn
32 </features>
33 <setenv>
34 CHARSET=UTF-8
35 LANG=en_US.UTF-8
36 </setenv>
37  <name>
38 HTTP over proxy with IDN host name
39  </name>
40  <command>
41 http://www.åäö.se/page/165 -x %HOSTIP:%HTTPPORT http://www.große.de/page/165
42 </command>
43 </client>
44
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 GET http://www.xn--4cab6c.se/page/165 HTTP/1.1\r
53 Host: www.xn--4cab6c.se\r
54 Accept: */*\r
55 Proxy-Connection: Keep-Alive\r
56 \r
57 GET http://www.xn--groe-xna.de/page/165 HTTP/1.1\r
58 Host: www.xn--groe-xna.de\r
59 Accept: */*\r
60 Proxy-Connection: Keep-Alive\r
61 \r
62 </protocol>
63 </verify>
64 </testcase>