jira-importer opened a new issue, #1174:
URL: https://github.com/apache/httpcomponents-core/issues/1174

   **[Carter 
Kozak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ckozak)** 
opened 
**[HTTPCORE-643](https://issues.apache.org/jira/browse/HTTPCORE-643?redirect=false)**
 and commented
   
   https://tools.ietf.org/html/rfc7230#section-3.3.2 states "A user agent 
SHOULD send a Content-Length in a request message when
   no Transfer-Encoding is sent and the request method defines a meaning
   for an enclosed payload body."
   
    
   
   I encountered a proxy that rejected both PUT and POST requests with no 
content-length and no body by returning a 411 "Length Required" status. I 
believe this is rare, and servers are expected to support requests with and 
without a defined content length and no body, but it would be helpful to add 
the content-length by default to avoid incompatibility.
   
   
   ---
   
   **Affects:** 5.0.1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to