Set User-Agent and From HTTP header for request made by Tryton
Most of the time we use python-requests for which we could change the requests.utils.default_headers()
to set User-Agent
to for example Tryton/6.6
(and maybe append the python-requests version as comment.
For direct usage of urllib.request
we should pass explicitly the headers (with probably also the urllib version). For that we may provide a wrapper as utility.
For other library like zeep which uses python-requests under the hood, it will inherit from the default header (normally).
For other library like ShopifyAPI which does not use python-requests, we have to find how the header can be customized.