diff options
author | hobbs <hobbs> | 2001-08-21 01:16:50 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-08-21 01:16:50 (GMT) |
commit | 85875ffd9d43a7e4e9151d8bddf9c24d34016743 (patch) | |
tree | bcc5ae5ee353f333fad2197de706399c0fc4dae9 | |
parent | e5331b50bc8a3c246050ba9fcea63fb5b4c3c23b (diff) | |
download | tcl-85875ffd9d43a7e4e9151d8bddf9c24d34016743.zip tcl-85875ffd9d43a7e4e9151d8bddf9c24d34016743.tar.gz tcl-85875ffd9d43a7e4e9151d8bddf9c24d34016743.tar.bz2 |
* library/http/http.tcl (geturl): added port number to Host:
header to comply with HTTP/1.1 spec (RFC 2068). [Bug #452217]
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | library/http/http.tcl | 6 |
2 files changed, 9 insertions, 4 deletions
@@ -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 |