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 crickert
Recipients crickert, martin.panter, r.david.murray
Date 2015-11-08.12:40:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446986421.47.0.848395597214.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.

Exactly. :)


>>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 :)

[OpenerDirector example]
import urllib.request
opener = urllib.request.build_opener()
# adding custom header value to the 'User-agent' key
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
opener.open('http://www.example.com/')

"This is often used to “spoof” the User-Agent header VALUE, which is used by a browser to identify itself ..."
History
Date User Action Args
2015-11-08 12:40:21crickertsetrecipients: + crickert, r.david.murray, martin.panter
2015-11-08 12:40:21crickertsetmessageid: <1446986421.47.0.848395597214.issue25570@psf.upfronthosting.co.za>
2015-11-08 12:40:21crickertlinkissue25570 messages
2015-11-08 12:40:21crickertcreate