summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormax <max@tclers.tk>2012-07-08 10:55:49 (GMT)
committermax <max@tclers.tk>2012-07-08 10:55:49 (GMT)
commitabeb1a6a1e7d636379b0071d7a33a4395b6ec707 (patch)
tree9c9e9eb612da3d4636c26e265416583202c2ab8d /tests
parent4b87d73b631c0e6b946c1e7a43b9cbb528674b18 (diff)
downloadtcl-abeb1a6a1e7d636379b0071d7a33a4395b6ec707.zip
tcl-abeb1a6a1e7d636379b0071d7a33a4395b6ec707.tar.gz
tcl-abeb1a6a1e7d636379b0071d7a33a4395b6ec707.tar.bz2
Add fix and test for URLs that contain literal IPv6 addresses. [Bug 3531209]
Diffstat (limited to 'tests')
-rw-r--r--tests/http.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/http.test b/tests/http.test
index 37d4a05..fe44b47 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -135,6 +135,7 @@ set fullurl http://user:pass@[info hostname]:$port/a/b/c
set binurl //[info hostname]:$port/binary
set posturl //[info hostname]:$port/post
set badposturl //[info hostname]:$port/droppost
+set ipv6url http://\[::1\]:$port/
test http-3.4 {http::geturl} -body {
set token [http::geturl $url]
http::data $token
@@ -390,6 +391,12 @@ Connection close
Content-Type {text/plain;charset=utf-8}
Accept-Encoding .*
Content-Length 5}
+test http-3.29 "http::geturl $ipv6url" -body {
+ set token [http::geturl $ipv6url -validate 1]
+ http::code $token
+} -cleanup {
+ http::cleanup $token
+} -result "HTTP/1.0 200 OK"
test http-4.1 {http::Event} -body {
set token [http::geturl $url -keepalive 0]