Summary: | getParameter() fails on POST with transfer-encoding: chunked | ||
---|---|---|---|
Product: | Tomcat 5 | Reporter: | Arne Riiber <ariiber> |
Component: | Servlet & JSP API | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mjanger |
Priority: | P2 | ||
Version: | 5.5.12 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Attachments: | Sample code for demonstrating the bug |
Description
Arne Riiber
2005-12-05 18:43:35 UTC
URL POST must use a content-length. Otherwise, it's something else. It's correct that Content-Length was required for HTTP/1.0, but with HTTP/1.1 it's not required anymore according to RFC2616 [ftp://ftp.isi.edu/in-notes/rfc2616.txt] chapter 4.3: The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's message-headers. RFC2616 chapter 19.4.6 "Introduction of Transfer-Encoding" also includes pseudo code for determining the content-length from the chunks. Please correct me if I'm wrong. Best regards Arne Riiber Created attachment 17155 [details]
Sample code for demonstrating the bug
This is really a problem for any POST requests coming out of MIDP where you cannot change your transfer encoding (its controlled by the device). Thanks a lot, -Rushabh As of Tomcat 5.5.20 and Tomcat 6.0.16, this is still an open issue. Any status? This has been fixed in trunk (with a test case) and will be proposed for 6.0.x and 5.5.x This has been fixed in 6.0.x and will be included in 6.0.21 onwards This has been fixed in 5.5.x and will be included in 5.5.28 onwards. |