Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7d9c5ddf1a156412b01c3a129fa3133931d46917
Ticket: 3165982fffffffffffffffffffffffffffffffff
http 2.7 dependency on zlib breaks in Tcl 8.5
User & Date: a3a3el on 2011-01-26 15:51:26
Changes

  1. assignee changed to: "patthoyts"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The http 2.7 package introduced in 8.5.2 has a dependency on the in-core zlib
    package which is only present in 8.6.  Consequently, any gzip-encoded response
    is incorrectly handled.
    
    Here I use 8.5.1:
    
      $ cat <<END | /tmp/tcl8.5.1/bin/tclsh8.5
      > puts "Tcl: [package present Tcl]"
      > package require http
      > puts "HTTP: [package present http]"
      > if { [ catch {
      >   set tok [http::geturl http://centrebet.com/cust \
      >     -headers {Accept-Encoding gzip}]
      > } err] } {
      >   puts \$err
      > } else {
      >   puts \$tok
      > }
      > END
      Tcl: 8.5.1
      HTTP: 2.5.3
      ::http::1
    
    which doesn't attempt the decompress the body, and http::geturl returns
    successfully.
    
    Here I use 8.5.2:
    
      $ cat <<END | /tmp/tcl8.5.2/bin/tclsh8.5
      > puts "Tcl: [package present Tcl]"
      > package require http
      > puts "HTTP: [package present http]"
      > if { [ catch {
      >   set tok [http::geturl http://centrebet.com/cust \
      >     -headers {Accept-Encoding gzip}]
      > } err] } {
      >   puts \$err
      > } else {
      >   puts \$tok
      > }
      > END
      Tcl: 8.5.2
      HTTP: 2.7
      invalid command name "zlib"
    
    which calls http::Gunzip to decompress and fails because zlib is not available.
    
    
  4. foundin changed to: "obsolete: 8.5.9"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "a3a3el"
  10. subsystem changed to: "29. http Package"
  11. title changed to: "http 2.7 dependency on zlib breaks Tcl 8.5"
  12. type changed to: "Bug"