diff options
author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-11-12 13:25:09 +0100 |
---|---|---|
committer | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-11-14 18:20:56 +0100 |
commit | ae7369b6d04b96f4021e08bd7f61c9e86d64beaa (patch) | |
tree | f91c71b2359cb136fc2ae5a053602579a67673d2 /tests/data/test1263 | |
parent | de67c259d36df13b22b071191a547ce7be751568 (diff) |
URL: return error on malformed URLs with junk after IPv6 bracket
Follow-up to aadb7c7. Verified by new test 1263.
Closes #2072
Diffstat (limited to 'tests/data/test1263')
-rw-r--r-- | tests/data/test1263 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/data/test1263 b/tests/data/test1263 new file mode 100644 index 000000000..7946916e2 --- /dev/null +++ b/tests/data/test1263 @@ -0,0 +1,37 @@ +# similar to test 1260 +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# Server-side +<reply> +</reply> + +# Client-side +<client> +<server> +none +</server> +<features> +http +</features> + <name> +HTTP URL with rubbish after IPv6 bracket + </name> + <command> +-g "http://[%HOSTIP]test:%HTTPPORT/we/want/1263" "http://[%HOSTIP][%HOSTIP]:%HTTPPORT/we/want/1263" "http://user@[::1]@localhost" +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +# CURLE_URL_MALFORMAT == 3 +<errorcode> +3 +</errorcode> +</verify> +</testcase> |