Martin Panter added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25570>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to