Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b176f70bd4923066fd8c0b847fac59809fcbc660
Ticket: 218690ffffffffffffffffffffffffffffffffff
http v2 package doesn't support null
User & Date: nobody on 2000-10-26 01:04:09
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1747 Bug
    Version: 8.1b2
    SubmitDate: '1999-04-07'
    LastModified: '1999-08-05'
    Severity: MED
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 2502
    OS: Other
    Machine: NA
    FixedDate: '1999-08-05'
    FixedInVersion: 8.2b2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Jeffrey Hobbs
    
    Comments:
    This works for sending data with nulls in it (ie - gifs) to POST null
        friendly scripts (ie - Tcl8.1 but not necessarily Tcl8.0).  The proper
        solution should be multipart mime encoding support in
        ::http::formatQuery
        and a -qeury(type|encoding) option to ::http::geturl as the current
        x-www-urlencoding is hard-coded.  That requires more overhauling in the
        http.tcl, but is 100% valid.  I have the necessary code should you want
        to take this option.
    
    ObservedBehavior:
    In using the ::http::formatQuery to post a URL with binary data,
        it complains that formMap(\x00) doesn't exist.  This is simply
        because the null wasn't accounted for in creating formMap.
    
    Patch:
    The patch has two simple variations for http2.0/http.tcl.
    Either change line 30 from {set i 1} to {set i 0} or
    change line 38 to include " \x00 %00".
    
    I chose the latter because it involves less processing, but
    the former may be more appropriate in context.
    
    PatchFiles:
    <tcl_libraries>/http2.0/http.tcl
    
    
    
    Added to patch for 8.2b3 made with fix for bug 2502. 
    -- 08/05/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.1b2"
  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: "http v2 package doesn't support null"
  11. type changed to: "Bug"