• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7IDN
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data>
15HTTP/1.1 200 OK
16Date: Thu, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake swsclose
18Content-Type: text/html
19Funny-head: yesyes
20
21</data>
22</reply>
23
24#
25# Client-side
26<client>
27<server>
28http
29</server>
30<features>
31idn
32proxy
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 IDN host name
43 </name>
44 <command>
45http://www.åäö.se/page/165 -x %HOSTIP:%HTTPPORT http://www.große.de/page/165
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://www.xn--4cab6c.se/page/165 HTTP/1.1
57Host: www.xn--4cab6c.se
58Accept: */*
59Proxy-Connection: Keep-Alive
60
61GET http://www.xn--groe-xna.de/page/165 HTTP/1.1
62Host: www.xn--groe-xna.de
63Accept: */*
64Proxy-Connection: Keep-Alive
65
66</protocol>
67</verify>
68</testcase>
69