Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e042541a9a88bbba6f48f4b0eaf8169ca062da16
Ticket: 452217ffffffffffffffffffffffffffffffffff
Host header does not include port number
User & Date: tils on 2001-08-17 21:06:51
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When accessing an URL that includes a port number other
     then the standard web port 80 then I think it should
    be included in the host header, like this:
    
    Host: www.foo.com:9000
    
    but http produces this header instead:
    
    Host: www.foo.com
    
    I did not check what the http spec says about this but
    I guess including the port number is the correct thing
    - at least mozilla 0.9.3 does it.
    
    This can be easily reproduced by opening a socket on
    the shell with
    
    $ socket -s 9000
    
    and requesting that address via tcl and with a web browser:
    
    $ tclsh
    % package require http
    2.3
    % ::http::geturl http://localhost:9000
    
    
    The output on the socket shell displays the different
    Host: headers.
    
    
    I am using Linux 2.4.7 with debian, version of the tcl
    package is: tcl8.3_8.3.3-1_i386.deb
    
    I would highly appreciate any hints on how to this
    could be worked around with the current version - I
    could not find a way to manipulate the Host: header,
    and I don't want to rewrite my app to use socket
    manually. Using the -header option results in multiple
    Host: headers.
    
    
    
  4. foundin changed to: "obsolete: 8.3.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "tils"
  9. subsystem changed to: "29. http Package"
  10. title changed to: "Host header does not include port number"
  11. type changed to: "Bug"