summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-08-21 01:09:13 (GMT)
committerhobbs <hobbs>2001-08-21 01:09:13 (GMT)
commita105512aace7f42f2603336844607e39c054502b (patch)
tree47a8a57d0a5fba24b924c844bd418bbc9bc2695e /library/http/http.tcl
parent60c65ab0cfb7f9099eb4ed142d9977e79af68a27 (diff)
downloadtcl-a105512aace7f42f2603336844607e39c054502b.zip
tcl-a105512aace7f42f2603336844607e39c054502b.tar.gz
tcl-a105512aace7f42f2603336844607e39c054502b.tar.bz2
* library/http/http.tcl (geturl): added port number to Host:
header to comply with HTTP/1.1 spec (RFC 2068). [Bug #452217]
Diffstat (limited to 'library/http/http.tcl')
-rw-r--r--library/http/http.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 10e094f..fa5bd8f 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.36 2001/08/09 01:06:42 dgp Exp $
+# RCS: @(#) $Id: http.tcl,v 1.37 2001/08/21 01:09:13 hobbs Exp $
# Rough version history:
# 1.0 Old http_get interface
@@ -29,9 +29,9 @@ namespace eval http {
-accept */*
-proxyhost {}
-proxyport {}
- -useragent {Tcl http client package 2.3.2}
-proxyfilter http::ProxyRequired
}
+ set http(-useragent) "Tcl http client package [package provide http]"
variable formMap
variable alphanumeric a-zA-Z0-9
@@ -394,7 +394,7 @@ proc http::geturl { url args } {
if {[catch {
puts $s "$how $srvurl HTTP/1.0"
puts $s "Accept: $http(-accept)"
- puts $s "Host: $host"
+ puts $s "Host: $host:$port"
puts $s "User-Agent: $http(-useragent)"
foreach {key value} $state(-headers) {
regsub -all \[\n\r\] $value {} value