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 martin.panter
Recipients crickert, docs@python, martin.panter, r.david.murray
Date 2015-11-09.01:04:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447031056.27.0.145124424012.issue25570@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm, I wonder if that OpenerDirector example is a bit obscure. Normally you would use the default urlopen() to set User-Agent, without resorting to a custom OpenerDirector.

In my patch:

* Included “User-Agent header _value_” in the “headers” parameter description
* Linked to <https://docs.python.org/dev/howto/urllib2.html> from examples section
* Added add_header("User-Agent", ...) example with made-up custom value

Let me know what you think (if anything is unnecessary, other suggestions?)
History
Date User Action Args
2015-11-09 01:04:16martin.pantersetrecipients: + martin.panter, r.david.murray, docs@python, crickert
2015-11-09 01:04:16martin.pantersetmessageid: <1447031056.27.0.145124424012.issue25570@psf.upfronthosting.co.za>
2015-11-09 01:04:16martin.panterlinkissue25570 messages
2015-11-09 01:04:15martin.pantercreate