Author Aifu LIU
Recipients Aifu LIU, docs@python
Date 2018-06-11.10:45:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za>
In-reply-to
Content
The output of this line:
    print r2.status, r2.reason
should same as:
    print r1.status, r1.reason

from https://docs.python.org/2.7/library/httplib.html

>>> import httplib
>>> conn = httplib.HTTPSConnection("www.python.org")
>>> conn.request("GET", "/")
>>> r1 = conn.getresponse()
>>> print r1.status, r1.reason
200 OK
>>> data1 = r1.read()
>>> conn.request("GET", "/")
>>> r2 = conn.getresponse()
>>> print r2.status, r2.reason
404 Not Found
>>> data2 = r2.read()
>>> conn.close()
History
Date User Action Args
2018-06-11 10:45:03Aifu LIUsetrecipients: + Aifu LIU, docs@python
2018-06-11 10:45:03Aifu LIUsetmessageid: <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za>
2018-06-11 10:45:03Aifu LIUlinkissue33830 messages
2018-06-11 10:45:03Aifu LIUcreate