This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients docs@python, steven.daprano
Date 2015-05-03.14:39:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430663968.45.0.585003367103.issue24118@psf.upfronthosting.co.za>
In-reply-to
Content
The example code for http.client shows www.python.org/parrot.spam return a 404:

https://docs.python.org/3/library/http.client.html#examples

>>> # Example of an invalid request
>>> conn.request("GET", "/parrot.spam")
>>> r2 = conn.getresponse()
>>> print(r2.status, r2.reason)
404 Not Found


However it no longer does that, instead it returns a 301 Moved Permanently.
History
Date User Action Args
2015-05-03 14:39:28steven.dapranosetrecipients: + steven.daprano, docs@python
2015-05-03 14:39:28steven.dapranosetmessageid: <1430663968.45.0.585003367103.issue24118@psf.upfronthosting.co.za>
2015-05-03 14:39:28steven.dapranolinkissue24118 messages
2015-05-03 14:39:28steven.dapranocreate