Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 86cb2133b09c6aed488a58e4cc2ff2592a6dc12a
Ticket: 504508ffffffffffffffffffffffffffffffffff
port 80 in "Host:" request header
User & Date: apulsifer on 2002-01-16 18:15:10
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    http.tcl v2.4 generates a header line in the http 
    request that reads:
    
    Host: www.domain.com:80
    
    I have discovered a server (sorry, can't say where) 
    that tries to 302 redirect you to "www.domain.com" 
    when you request a document from "www.domain.com:80".  
    Yeh, I know its stupid, but since I have no control 
    over the server, the only reasonable work around is to 
    patch http.tcl.
    
    When patched as follows, it works great:
    
    old code:
    puts $s "Host: $host:$port"
    
    new code:
    if {$port == 80} {
    puts $s "Host: $host"
    } else {
    puts $s "Host: $host:$port"
    }
    
    I suggest making this change to http.tcl in order to 
    make it more tolerant of brain damaged servers.
    
    Thanks.
    
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "apulsifer"
  9. subsystem changed to: "29. http Package"
  10. title changed to: "port 80 in "Host:" request header"
  11. type changed to: "Bug"