Imported Upstream version 7.53.1
[platform/upstream/curl.git] / tests / data / test1035
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 IDN
8 FAILURE
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <data>
16 HTTP/1.0 503 Service Unavailable\r
17 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
18 Server: test-server/fake swsclose\r
19 Content-Type: text/html\r
20 Funny-head: yesyes\r
21 \r
22 </data>
23 </reply>
24
25 #
26 # Client-side
27 <client>
28 <server>
29 http
30 </server>
31 <features>
32 idn
33 </features>
34 <setenv>
35 CHARSET=UTF-8
36 LANG=en_US.UTF-8
37 </setenv>
38  <name>
39 HTTP over proxy with too long IDN host name
40  </name>
41  <command>
42 http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/1035 -x %HOSTIP:%HTTPPORT
43 </command>
44 </client>
45
46 #
47 # Verify data after the test has been "shot"
48 <verify>
49 <strip>
50 ^User-Agent:.*
51 </strip>
52 <protocol>
53 GET http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/1035 HTTP/1.1\r
54 Host: too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local\r
55 Accept: */*\r
56 Proxy-Connection: Keep-Alive\r
57 \r
58 </protocol>
59 </verify>
60 </testcase>