Message254338
>>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 ..." |
|
Date |
User |
Action |
Args |
2015-11-08 12:40:21 | crickert | set | recipients:
+ crickert, r.david.murray, martin.panter |
2015-11-08 12:40:21 | crickert | set | messageid: <1446986421.47.0.848395597214.issue25570@psf.upfronthosting.co.za> |
2015-11-08 12:40:21 | crickert | link | issue25570 messages |
2015-11-08 12:40:21 | crickert | create | |
|