blob: 033a48a7228e7108f1eb2484e6e204ede662a564 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7IDN
8FAILURE
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<data>
16HTTP/1.0 503 Service Unavailable
17Date: Thu, 09 Nov 2010 14:49:00 GMT
18Server: test-server/fake swsclose
19Content-Type: text/html
20Funny-head: yesyes
21
22</data>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30</server>
31<features>
32idn
33</features>
34<setenv>
35LC_ALL=
36LC_CTYPE=en_US.UTF-8
37</setenv>
38<precheck>
39perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
40</precheck>
41 <name>
42HTTP over proxy with too long IDN host name
43 </name>
44 <command>
45http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/1035 -x %HOSTIP:%HTTPPORT
46</command>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<strip>
53^User-Agent:.*
54</strip>
55<protocol>
56GET http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/1035 HTTP/1.1
57Host: too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local
58Accept: */*
59Proxy-Connection: Keep-Alive
60
61</protocol>
62</verify>
63</testcase>