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
- assignee changed to: "patthoyts"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.5.9"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "a3a3el"
- subsystem changed to: "29. http Package"
- title changed to: "http 2.7 dependency on zlib breaks Tcl 8.5"
- type changed to: "Bug"