aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1560
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-04-30 16:59:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-03 12:17:22 +0200
commitbdb2dbc1032e7ca33cfc161fd1d5bfbabdf65841 (patch)
treed9e4788e86e610c1a841e91fa6fcc1b3179c3d1c /tests/data/test1560
parent028126281901fb651819821f5c05caaf40976209 (diff)
urlapi: strip off scope id from numerical IPv6 addresses
... to make the host name "usable". Store the scope id and put it back when extracting a URL out of it. Also makes curl_url_set() syntax check CURLUPART_HOST. Fixes #3817 Closes #3822
Diffstat (limited to 'tests/data/test1560')
-rw-r--r--tests/data/test156010
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/data/test1560 b/tests/data/test1560
index 4b6c97a53..9f6a122a0 100644
--- a/tests/data/test1560
+++ b/tests/data/test1560
@@ -31,4 +31,14 @@ lib1560
</tool>
</client>
+<verify>
+<stdout>
+we got [fe80::20c:29ff:fe9c:409b]
+we got https://[::1]/hello.html
+we got https://example.com/hello.html
+we got https://[fe80::20c:29ff:fe9c:409b%25eth0]/hello.html
+we got [fe80::20c:29ff:fe9c:409b]
+success
+</stdout>
+</verify>
</testcase>