hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Berlin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-219) HttpRequestParser Fails to Detect Requests Without a Message Body
Date Fri, 05 Mar 2010 15:52:27 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841899#action_12841899
] 

Sam Berlin commented on HTTPCORE-219:
-------------------------------------

I don't think it's all that terribly bizarre.  The HTTP format (send a request with headers
& an optional body, get a response with optional headers & a body) is pretty well-defined,
and it's not that much of a stretch to imagine extensions to it that utilize the underpinnings
but change the methods & interpretations.

> HttpRequestParser Fails to Detect Requests Without a Message Body
> -----------------------------------------------------------------
>
>                 Key: HTTPCORE-219
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-219
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0.1
>            Reporter: James Leigh
>
> The HttpRequestParser uses the request method to determine if the request has a message
body. However, HTTP 1.1 states that 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 header
fields. The parser should be changed to use the header to determine if a message body is present.
> As is a POST or PUT request is received without a message body cannot be processed. Furthermore,
a GET request with a message body cannot be processed either.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message