HTTP
HTTP GET
HTTP proxy
IDN
FAILURE
config file
#
# Server-side
HTTP/1.0 503 Service Unavailable
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake swsclose
Content-Type: text/html
Funny-head: yesyes
#
# Client-side
http
idn
LC_ALL=
LC_CTYPE=en_US.UTF-8
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
HTTP over proxy with malformatted IDN host name
# This host name contains an invalid UTF-8 byte sequence that can't be
# converted into an IDN name
url = "http://invalid-utf8-.local/page/1034"
-K - -x %HOSTIP:%HTTPPORT
#
# Verify data after the test has been "shot"
^User-Agent:.*
GET http://invalid-utf8-.local/page/1034 HTTP/1.1
Host: invalid-utf8-.local
Accept: */*
Proxy-Connection: Keep-Alive