[New-bugs-announce] [issue6161] HTTPResponse not storing response body

Guthur report at bugs.python.org
Mon Jun 1 17:59:28 CEST 2009


New submission from Guthur <guthur at hotmail.com>:

HTTPResponse does not store the HTTP response body while it does store 
the response headers, which in my opinion makes it rather useless as a 
HTTP response abstraction object. 

The only way to obtain the response body is to call HTTPResponse.Read
([amt]) and store the body seperately, this must also be carried out 
before the connection is closed, which makes no sense as the server 
serves both HEADERs and BODY together.

I can think of no real reason why this should be the case HTTP already 
provides a method for receiving just the headers with the HEAD request 
type.

Keynotes: HTTPResponse should store the body, if received, as well as 
the headers.

----------
components: Library (Lib)
messages: 88648
nosy: Guthur
severity: normal
status: open
title: HTTPResponse not storing response body
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6161>
_______________________________________


More information about the New-bugs-announce mailing list