maybe nice if all the scripts send a custom user agent of their own, now everything is just "Python-urllib/3.7" which is hard to tell
As this will help to understand which application makes which etherpad api request, in moments of emergency ;)
From the infra group chat:
> maybe nice if all the scripts send a custom user agent of their own, now everything is just "Python-urllib/3.7" which is hard to tell
As this will help to understand which application makes which etherpad api request, in moments of emergency ;)
Whether you use inbuilt urllib or requests, this is possible.
urllib
https://docs.python.org/3.4/library/urllib.request.html#urllib.request.Request
requests
https://docs.python-requests.org/en/master/user/quickstart/#custom-headers
same for https://git.vvvvvvaria.org/varia/etherpump/issues/21
From the infra group chat:
As this will help to understand which application makes which etherpad api request, in moments of emergency ;)
Whether you use inbuilt urllib or requests, this is possible.
urllib
https://docs.python.org/3.4/library/urllib.request.html#urllib.request.Request
requests
https://docs.python-requests.org/en/master/user/quickstart/#custom-headers
same for varia/etherpump#21