2008-07-08 07:52:52 +08:00
|
|
|
|
<testcase>
|
|
|
|
|
<info>
|
|
|
|
|
<keywords>
|
|
|
|
|
HTTP
|
|
|
|
|
HTTP GET
|
2008-09-30 06:44:04 +08:00
|
|
|
|
HTTP proxy
|
2008-07-08 07:52:52 +08:00
|
|
|
|
IDN
|
|
|
|
|
FAILURE
|
2017-05-17 03:29:59 +08:00
|
|
|
|
config file
|
2008-07-08 07:52:52 +08:00
|
|
|
|
</keywords>
|
|
|
|
|
</info>
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Server-side
|
|
|
|
|
<reply>
|
|
|
|
|
<data>
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
</data>
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Client-side
|
|
|
|
|
<client>
|
|
|
|
|
<server>
|
|
|
|
|
http
|
|
|
|
|
</server>
|
|
|
|
|
<features>
|
|
|
|
|
idn
|
|
|
|
|
</features>
|
|
|
|
|
<setenv>
|
2017-02-24 04:47:17 +08:00
|
|
|
|
LC_ALL=
|
|
|
|
|
LC_CTYPE=en_US.UTF-8
|
2008-07-08 07:52:52 +08:00
|
|
|
|
</setenv>
|
2017-02-24 04:47:17 +08:00
|
|
|
|
<precheck>
|
|
|
|
|
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
|
|
|
|
</precheck>
|
2008-07-08 07:52:52 +08:00
|
|
|
|
<name>
|
|
|
|
|
HTTP over proxy with malformatted IDN host name
|
|
|
|
|
</name>
|
|
|
|
|
|
|
|
|
|
# This host name contains an invalid UTF-8 byte sequence that can't be
|
|
|
|
|
# converted into an IDN name
|
2017-05-17 03:29:59 +08:00
|
|
|
|
<stdin>
|
|
|
|
|
url = "http://invalid-utf8-<2D><>.local/page/1034"
|
|
|
|
|
</stdin>
|
2008-07-08 07:52:52 +08:00
|
|
|
|
<command>
|
2017-05-17 03:29:59 +08:00
|
|
|
|
-K - -x %HOSTIP:%HTTPPORT
|
2008-07-08 07:52:52 +08:00
|
|
|
|
</command>
|
|
|
|
|
</client>
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
|
<verify>
|
|
|
|
|
<strip>
|
|
|
|
|
^User-Agent:.*
|
|
|
|
|
</strip>
|
|
|
|
|
<protocol>
|
|
|
|
|
GET http://invalid-utf8-<2D><>.local/page/1034 HTTP/1.1
|
|
|
|
|
Host: invalid-utf8-<2D><>.local
|
|
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
|
Proxy-Connection: Keep-Alive
|
2008-07-08 07:52:52 +08:00
|
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
</verify>
|
|
|
|
|
</testcase>
|