http v2 package doesn't support null
Deleted218690ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:09
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
welch Deleted ticket [218690ffff].
[History diff]2000-10-26 08:27:11
dgp Ticket [218690ffff]: 3 changes
[History diff]2001-04-17 05:47:33
Log in (anonymous is fine) to add a comment.