summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2001-08-21 01:16:49 (GMT)
committerhobbs <hobbs@noemail.net>2001-08-21 01:16:49 (GMT)
commitf76ac1d8a1b56980f1ebb8070b87a202f3bbf3e4 (patch)
treebcc5ae5ee353f333fad2197de706399c0fc4dae9
parent4f5c441aff06e9499f190a630f918f2f345c0c86 (diff)
downloadtcl-f76ac1d8a1b56980f1ebb8070b87a202f3bbf3e4.zip
tcl-f76ac1d8a1b56980f1ebb8070b87a202f3bbf3e4.tar.gz
tcl-f76ac1d8a1b56980f1ebb8070b87a202f3bbf3e4.tar.bz2
* library/http/http.tcl (geturl): added port number to Host:
header to comply with HTTP/1.1 spec (RFC 2068). [Bug #452217] FossilOrigin-Name: 512001789d8822024d9eb48852da61ffa6397cc6
-rw-r--r--ChangeLog7
-rw-r--r--library/http/http.tcl6
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index de84b81..10c3640 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2001-08-98 Don Porter <dgp@users.sourceforge.net>
+2001-08-20 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * library/http/http.tcl (geturl): added port number to Host:
+ header to comply with HTTP/1.1 spec (RFC 2068). [Bug #452217]
+
+2001-08-08 Don Porter <dgp@users.sourceforge.net>
* library/dde1.1/pkgIndex.tcl:
* library/reg1.0/pkgIndex.tcl: Package dependencies. [Patch 448931]
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 0eb5260..1e3a359 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.32.2.2 2001/08/09 01:00:56 dgp Exp $
+# RCS: @(#) $Id: http.tcl,v 1.32.2.3 2001/08/21 01:16:50 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