# Server-side
<reply>
<data>
-HTTP/1.1 200 OK\r
-Date: Thu, 09 Nov 2010 14:49:00 GMT\r
-Server: test-server/fake swsclose\r
-Content-Type: text/html\r
-Funny-head: yesyes\r
-\r
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake swsclose
+Content-Type: text/html
+Funny-head: yesyes
+
</data>
</reply>
idn
</features>
<setenv>
-CHARSET=UTF-8
-LANG=en_US.UTF-8
+LC_ALL=
+LC_CTYPE=en_US.UTF-8
</setenv>
+<precheck>
+perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
+</precheck>
<name>
HTTP over proxy with IDN host name
</name>
^User-Agent:.*
</strip>
<protocol>
-GET http://www.xn--4cab6c.se/page/165 HTTP/1.1\r
-Host: www.xn--4cab6c.se\r
-Accept: */*\r
-Proxy-Connection: Keep-Alive\r
-\r
-GET http://www.xn--groe-xna.de/page/165 HTTP/1.1\r
-Host: www.xn--groe-xna.de\r
-Accept: */*\r
-Proxy-Connection: Keep-Alive\r
-\r
+GET http://www.xn--4cab6c.se/page/165 HTTP/1.1
+Host: www.xn--4cab6c.se
+Accept: */*
+Proxy-Connection: Keep-Alive
+
+GET http://www.xn--groe-xna.de/page/165 HTTP/1.1
+Host: www.xn--groe-xna.de
+Accept: */*
+Proxy-Connection: Keep-Alive
+
</protocol>
</verify>
</testcase>