projects
/
platform
/
upstream
/
curl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 7.59.0
[platform/upstream/curl.git]
/
tests
/
data
/
test1034
diff --git
a/tests/data/test1034
b/tests/data/test1034
index
c475740
..
beab0d3
100644
(file)
--- a/
tests/data/test1034
+++ b/
tests/data/test1034
@@
-6,57
+6,50
@@
HTTP GET
HTTP proxy
IDN
FAILURE
HTTP proxy
IDN
FAILURE
+config file
</keywords>
</info>
#
# Server-side
<reply>
</keywords>
</info>
#
# Server-side
<reply>
-<data>
-HTTP/1.0 503 Service Unavailable
\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
-</data>
</reply>
#
# Client-side
<client>
<server>
</reply>
#
# Client-side
<client>
<server>
-http
+none
</server>
<features>
idn
</server>
<features>
idn
+http
</features>
<setenv>
</features>
<setenv>
-CHARSET=UTF-8
+LC_ALL=
+LC_CTYPE=en_US.UTF-8
</setenv>
</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 malformatted IDN host name
</name>
# This host name contains an invalid UTF-8 byte sequence that can't be
# converted into an IDN name
<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
+<stdin>
+url = "http://invalid-utf8-â
\90
.local/page/1034"
+</stdin>
<command>
<command>
-
http://invalid-utf8-â
\90
.local/page/1034
-x %HOSTIP:%HTTPPORT
+
-K -
-x %HOSTIP:%HTTPPORT
</command>
</client>
#
</command>
</client>
#
-# Verify data after the test has been "shot"
<verify>
<verify>
-<strip>
-^User-Agent:.*
-</strip>
-<protocol>
-GET http://invalid-utf8-â
\90
.local/page/1034 HTTP/1.1
\r
-Host: invalid-utf8-â
\90
.local
\r
-Accept: */*
\r
-Proxy-Connection: Keep-Alive
\r
-
\r
-</protocol>
+<errorcode>
+3
+</errorcode>
</verify>
</testcase>
</verify>
</testcase>