Message319290
| 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:03 | Aifu LIU | set | recipients: + Aifu LIU, docs@python |
| 2018-06-11 10:45:03 | Aifu LIU | set | messageid: <1528713903.44.0.592728768989.issue33830@psf.upfronthosting.co.za> |
| 2018-06-11 10:45:03 | Aifu LIU | link | issue33830 messages |
| 2018-06-11 10:45:03 | Aifu LIU | create | |