diff options
author | hobbs <hobbs@noemail.net> | 2001-08-21 01:09:13 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2001-08-21 01:09:13 (GMT) |
commit | 61b0bcbf052afec8e159ca769b93bdbca844e3da (patch) | |
tree | 47a8a57d0a5fba24b924c844bd418bbc9bc2695e /library/http | |
parent | 8ac7f1a68de10391e19e1b079abd27e26076503f (diff) | |
download | tcl-61b0bcbf052afec8e159ca769b93bdbca844e3da.zip tcl-61b0bcbf052afec8e159ca769b93bdbca844e3da.tar.gz tcl-61b0bcbf052afec8e159ca769b93bdbca844e3da.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: d3d6db60dc4d57005def401b1f175e830f75ebed
Diffstat (limited to 'library/http')
-rw-r--r-- | library/http/http.tcl | 6 |
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 |