Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0e2403d11176cec9aae9ff363e2d7427baa4dc93
Ticket: 219041ffffffffffffffffffffffffffffffffff
Wrong Content-length on POST's in http2.1/http1.0
User & Date: nobody on 2000-10-26 01:09:49
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4089 Bug
    Version: 8.2.3
    SubmitDate: '2000-01-26'
    LastModified: '2000-01-29'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Linux-SuSE
    FixedDate: '2000-01-29'
    FixedInVersion: 8.3
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Zoran Vasiljevic
    
    
    
    ReproducibleScript:
    
    Do an POST request, i.e. ::http::geturl <someurl> -query a=b
    
    The query string, "a=b" gets an (extra) terminating newline.
    
    
    
    ObservedBehavior:
    
    The query data POST'ed to <someurl> is newline terminated. This extra
    
    newline is not accounted for in the calculated content-length header.
    
    
    
    DesiredBehavior:
    
    Well, just do not emit these extra linefeed... ;-)
    
    
    
    Patch:
    
    *** http.tcl.orig       Wed Jan 26 15:25:26 2000
    
    --- http.tcl    Wed Jan 26 15:26:28 2000
    
    ***************
    
    *** 280,286 ****
    
            puts $s "Content-Type: application/x-www-form-urlencoded"
    
            puts $s ""
    
            fconfigure $s -translation {auto binary}
    
    !       puts $s $state(-query)
    
          } else {
    
            puts $s ""
    
          }
    
    --- 280,286 ----
    
            puts $s "Content-Type: application/x-www-form-urlencoded"
    
            puts $s ""
    
            fconfigure $s -translation {auto binary}
    
    !       puts -nonewline $s $state(-query)
    
          } else {
    
            puts $s ""
    
          }
    
    
    
    PatchFiles:
    
    library/http2.1/http.tcl
    
        library/http1.0/http.tcl
    
    
    
    
    
    Modified both 1.0 and 2.1(2) http for Tcl8.3.0. 
    -- 01/29/2000 hobbs
    
  4. foundin changed to: "final: 8.2.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Wrong Content-length on POST's in http2.1/http1.0"
  11. type changed to: "Bug"