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

   **[David 
Maplesden](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dmaplesden)**
 opened 
**[HTTPCORE-559](https://issues.apache.org/jira/browse/HTTPCORE-559?redirect=false)**
 and commented
   
   When you use the Classic HttpClient to execute a GET request for a resource 
which is returned with no Content-Length or Transfer-Encoding header then the 
response body (which should be now terminated by the closing of the stream) is 
not read.  Instead the client returns an empty response with no attempt made to 
read from the stream.
   
   I realize that virtually no responses are ever sent this way, they almost 
always either have a content length or use chunked transfer encoding, but it is 
still legal as per the HTTP spec to return a response without using either of 
these and relying on the end-of-stream to terminate the response body.  
Currently if a server is doing this, the HttpClient won't receive the response.
   
   I found this problem testing the HttpClient, but I believe the root source 
of the problem is in the DefaultBHttpClientConnection implementation.
   
   
   ---
   
   **Affects:** 5.0-beta3
   
   **Remote Links:**
   - [GitHub Pull Request `#89`
   ](https://github.com/apache/httpcomponents-core/pull/89)
   


-- 
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