Message254362
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?) |
|
Date |
User |
Action |
Args |
2015-11-09 01:04:16 | martin.panter | set | recipients:
+ martin.panter, r.david.murray, docs@python, crickert |
2015-11-09 01:04:16 | martin.panter | set | messageid: <1447031056.27.0.145124424012.issue25570@psf.upfronthosting.co.za> |
2015-11-09 01:04:16 | martin.panter | link | issue25570 messages |
2015-11-09 01:04:15 | martin.panter | create | |
|