Python Library Reference
Previous:
11.6.1 HTTPConnection Objects
Up:
11.6 httplib
Next:
11.6.3 Examples
11.6.2 HTTPResponse Objects
HTTPResponse
instances have the following methods and attributes:
read
()
Reads and returns the response body.
getheader
(
name
[
, default
]
)
Get the contents of the header
name
, or
default
if there is no matching header.
msg
A
mimetools.Message
instance containing the response headers.
version
HTTP protocol version used by server. 10 for HTTP/1.0, 11 for HTTP/1.1.
status
Status code returned by server.
reason
Reason phrase returned by server.
Release 2.3a0, documentation updated on March 24, 2002.
See
About this document...
for information on suggesting changes.