|
2001-04-23
| ||
| 04:09 | • Ticket [219041ffff] Wrong Content-length on POST's in http2.1/http1.0 st... artifact: b6a2852f8f user: dgp | |
|
2000-10-26
| ||
| 08:34 | • Deleted ticket [219041ffff]. artifact: 63be85c652 user: welch | |
| 01:09 | • New ticket [219041ffff]. artifact: 0e2403d111 user: nobody | |
Wrong Content-length on POST's in http2.1/http1.0
Deleted219041ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:09:49
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
welch Deleted ticket [219041ffff].
[History diff]2000-10-26 08:34:05
dgp Ticket [219041ffff]: 3 changes
[History diff]2001-04-23 04:09:16
Log in (anonymous is fine) to add a comment.