summaryrefslogtreecommitdiffstats
path: root/tests/http.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-07-08 11:32:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-07-08 11:32:04 (GMT)
commite6dbc77e0e898f6ce395d76be2f1fbb763ad3f94 (patch)
tree521163b907e76d7864563cd470dd7f7487daf849 /tests/http.test
parentd321f40d3b3cbfd53a3d17ffad1ecac4c81b97bd (diff)
parentabeb1a6a1e7d636379b0071d7a33a4395b6ec707 (diff)
downloadtcl-e6dbc77e0e898f6ce395d76be2f1fbb763ad3f94.zip
tcl-e6dbc77e0e898f6ce395d76be2f1fbb763ad3f94.tar.gz
tcl-e6dbc77e0e898f6ce395d76be2f1fbb763ad3f94.tar.bz2
merge trunk
Diffstat (limited to 'tests/http.test')
-rw-r--r--tests/http.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/http.test b/tests/http.test
index daddf2c..92e84b1 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]