diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-12-01 10:32:13 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-12-01 10:36:37 +0100 |
commit | aab33215afb71c52404419bfa0783620a0b5cb75 (patch) | |
tree | d321b28df15fe6904b6f9fa119917ee24ce8487b /tests/data/test1281 | |
parent | 42253ad943d21310e75829c8e7998b9d57115c06 (diff) |
URL parser: reject non-numerical port numbers
Test 1281 added to verify
Diffstat (limited to 'tests/data/test1281')
-rw-r--r-- | tests/data/test1281 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/data/test1281 b/tests/data/test1281 new file mode 100644 index 000000000..6226f8698 --- /dev/null +++ b/tests/data/test1281 @@ -0,0 +1,35 @@ +<testcase> +<info> +<keywords> +URL +</keywords> +</info> + +# +# Server-side +<reply> +<data> +</data> +</reply> + +# Client-side +<client> +<server> +none +</server> + <name> +reject non-numerical port number in URL + </name> + <command> +http://%HOSTIP:alpha/beta/1281 +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +# 3 == CURLE_URL_MALFORMAT +<errorcode> +3 +</errorcode> +</verify> +</testcase> |