Add custom user agent to urllib request #6

Open
opened 2 years ago by mb · 1 comments
mb commented 2 years ago
Owner

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

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 ;)
rra commented 2 years ago
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
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.