diff options
author | Alexis Vachette <avachette@deezer.com> | 2021-06-02 14:12:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-06-03 13:53:18 +0200 |
commit | cb39b4b7c49eec6014b29d754ed0c98de3e0d85e (patch) | |
tree | 7daf770a611535382c2b41abd11a42afc3231033 /tests/data/test3019 | |
parent | 002f976cdc890589ae4ab7e99519f52421ca6837 (diff) | |
download | curl-cb39b4b7c49eec6014b29d754ed0c98de3e0d85e.tar.gz |
hostip: bad CURLOPT_RESOLVE syntax now returns error
Added test 3019
Fixes #7170
Closes #7174
Diffstat (limited to 'tests/data/test3019')
-rw-r--r-- | tests/data/test3019 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/data/test3019 b/tests/data/test3019 new file mode 100644 index 000000000..040327828 --- /dev/null +++ b/tests/data/test3019 @@ -0,0 +1,36 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +--resolve +</keywords> +</info> + +# +# Server-side +<reply> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP with invalid --resolve syntax +</name> +<command> +--resolve %HTTPPORT:example.com:%HOSTIP http://example.com:%HTTPPORT/%TESTNUMBER +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<errorcode> +49 +</errorcode> +</verify> +</testcase> |