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, martin.panter, r.david.murray
Date 2015-11-07.00:24:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446855878.45.0.459884928932.issue25570@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, I think I see where you are coming from. I guess you aren’t intimately familiar with the HTTP protocol. There are various types of “headers” aka header fields, not only User-Agent, but Content-Type and others. When they suggest passing a User-Agent header, that actually means a call like

request.add_header("User-Agent", "custom text here")

using the exact string "User-Agent" as the field name (key).

If you can given a specific comment line to add to a specific example, that might be useful. Even if you aren’t 100% sure of the details :)
History
Date User Action Args
2015-11-07 00:24:38martin.pantersetrecipients: + martin.panter, r.david.murray, crickert
2015-11-07 00:24:38martin.pantersetmessageid: <1446855878.45.0.459884928932.issue25570@psf.upfronthosting.co.za>
2015-11-07 00:24:38martin.panterlinkissue25570 messages
2015-11-07 00:24:38martin.pantercreate