Skip to content
Tcl Source Code History Of Ticket 219399ffffffffff
Login

History Of Ticket 219399ffffffffff

Artifacts Associated With Ticket 219399ffffffffff

  1. Ticket change [3c2dee93b1] (rid 120879) by nobody on 2000-10-26 05:12:26:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 6255 Bug
      Version: 8.3
      SubmitDate: '2000-09-12'
      LastModified: '2000-10-25'
      Severity: CRIT
      Status: UnAssn
      Submitter: techsupp
      OS: Solaris
      OSVersion: Solaris 8
      Machine: Ultra 1
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      George Orwell
      
      
      Extensions:
      
      none
      
      
      CustomShell:
      
      none
      
      
      Comments:
      
      I'm using a fairly recent release:
      
      
              tclsh
      
              % package require http
      
              2.2
      
      
          Incoming gzip is totally failing because <CR>s are turning into <NL>s.
      
      
      ReproducibleScript:
      
      package require http
      
      set headers [list Accept "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*" \
      
          Accept-Encoding gzip  \
      
          Accept-Language en    \
      
          Accept-Charset "iso-8859-1,*,utf-8" ]
      
      
      set token [http::geturl http://www.netaddress.com/  -headers $headers]
      
      upvar #0 $token state
      
      set fd [open temp.body.gz w]
      
      fconfigure $fd -translation binary
      
      puts -nonewline $fd $state(body)
      
      close $fd
      
      
      ObservedBehavior:
      
      Incoming HTTP says text/html encoded gzip.
      
      
      #    HTTP: HTTP/1.1 200 OK
      
      #    HTTP: Date: Mon, 11 Sep 2000 16:07:40 GMT
      
      #    HTTP: Server: Apache/1.2.5
      
      #    HTTP: Content-Length: 2518
      
      #    HTTP: Content-encoding: gzip
      
      #    HTTP: Keep-Alive: timeout=1, max=99
      
      #    HTTP: Connection: Keep-Alive
      
      #    HTTP: Content-Type: text/html
      
      
      In the http package (package require http), there appears
      
      to be an error:
      
      
                  if {![regexp -nocase ^text $state(type)]} {
      
                      # Turn off conversions for non-text data
      
                      fconfigure $s -translation binary
      
      
      This is not being triggered, because $state(type) is 'text/html'.
      
      
      DesiredBehavior:
      
      It is not picking up on the text/html being encoded:
      
      
          $state(meta) ...Content-encoding gzip...
      
      
      Patch:
      
      This crude edit means I can now gunzip the data without
      
      failing due to a CRC error:
      
      
          if {![regexp -nocase ^text $state(type)]  \
      
          ||   [regexp -nocase gzip  $state(meta)]} {
      
      
      PatchFiles:
      
      package require http
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      Incoming text encoded gzip not being read in binary mode
      
    11. type initialized to: "Bug"
  2. Ticket change [da3a4be8a5] (rid 107739) by dkf on 2001-01-25 17:06:46:

    1. subsystem changed to: "62. (unused)"
  3. Ticket change [ca55f29caf] (rid 95326) by dkf on 2001-02-05 03:56:12:

    1. subsystem changed to: "29. http Package"
  4. Ticket change [3f9fe488e5] (rid 121495) by hobbs on 2001-08-21 06:56:27:

    1. assignee changed to: "hobbs"
  5. Ticket change [2e5b5052d1] (rid 119207) by hobbs on 2001-09-07 06:47:35:

    1. closedate changed to: "2001-09-06T23:47:35"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      fixed in core-8-3-1-branch and 8.4a4cvs so that encoding is 
      detected, and a just-in-case (CYA) -binary flag was added.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Deleted"
    8. username: "hobbs"