aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1035
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-17 16:48:37 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-22 11:14:06 +0100
commitfa939220dfff7607ed7b0522b549ecb482a5e1ac (patch)
tree9bca9d18c034a82b117525900fb27a4aa37986af /tests/data/test1035
parent9554c3c6e56e23153d4e1025b62c7a6402464a7c (diff)
url: reject ASCII control characters and space in host names
Host names like "127.0.0.1 moo" would otherwise be accepted by some getaddrinfo() implementations. Updated test 1034 and 1035 accordingly. Fixes #2073 Closes #2092
Diffstat (limited to 'tests/data/test1035')
-rw-r--r--tests/data/test103521
1 files changed, 5 insertions, 16 deletions
diff --git a/tests/data/test1035 b/tests/data/test1035
index 033a48a72..a316c51e1 100644
--- a/tests/data/test1035
+++ b/tests/data/test1035
@@ -12,24 +12,17 @@ FAILURE
#
# 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
+none
</server>
<features>
idn
+http
</features>
<setenv>
LC_ALL=
@@ -52,12 +45,8 @@ http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/10
<strip>
^User-Agent:.*
</strip>
-<protocol>
-GET http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/1035 HTTP/1.1
-Host: too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local
-Accept: */*
-Proxy-Connection: Keep-Alive
-
-</protocol>
+<errorcode>
+3
+</errorcode>
</verify>
</testcase>