Title: allow client to set the USER-AGENT to support testing · Issue #63 · hapi-server/client-python · GitHub
Open Graph Title: allow client to set the USER-AGENT to support testing · Issue #63 · hapi-server/client-python
X Title: allow client to set the USER-AGENT to support testing · Issue #63 · hapi-server/client-python
Description: It would be nice to set the User-Agent so that HAPI servers can filter requests made for testing from those where it's being used for science. To set it in Python, it is something like: USER_AGENT = 'hapibot-a/1.0; https://github.com/hap...
Open Graph Description: It would be nice to set the User-Agent so that HAPI servers can filter requests made for testing from those where it's being used for science. To set it in Python, it is something like: USER_AGENT ...
X Description: It would be nice to set the User-Agent so that HAPI servers can filter requests made for testing from those where it's being used for science. To set it in Python, it is something like: USER_AG...
Opengraph URL: https://github.com/hapi-server/client-python/issues/63
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"allow client to set the USER-AGENT to support testing","articleBody":"It would be nice to set the User-Agent so that HAPI servers can filter requests made for testing from those where it's being used for science.\r\n\r\nTo set it in Python, it is something like:\r\n\r\n```python\r\nUSER_AGENT = 'hapibot-a/1.0; https://github.com/hapi-server/data-specification/wiki/hapi-bots.md#hapibot-a'\r\nheaders= { \"User-Agent\" : USER_AGENT }\r\nx = requests.get(cS,headers=headers)\r\n```\r\n\r\nI'd suggest this would be an option in the **opts structure, like so:\r\n\r\n```python\r\nagent= 'hapibot-z/1.0; https://github.com/hapi-server/data-specification/wiki/hapi-bots.md#hapibot-z'\r\nopts = {'logging': False, 'format': 'csv', 'usecache': True, 'useragent':agent}\r\nhapidata = hapiclient.hapi(server, dataset, parameters, start, stop, **opts)\r\n```","author":{"url":"https://github.com/jbfaden","@type":"Person","name":"jbfaden"},"datePublished":"2022-11-01T17:53:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/63/client-python/issues/63"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9205ff2c-67e3-b523-d4ed-8da7cf8455aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E78A:3217ED:134B5FE:1A7E911:6A4DE6E5 |
| html-safe-nonce | e0e1780800bd0848b804ee8fb01a4251b2a165868afd0445f3a94154d0c280a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzhBOjMyMTdFRDoxMzRCNUZFOjFBN0U5MTE6NkE0REU2RTUiLCJ2aXNpdG9yX2lkIjoiMTk0ODQzOTI5NjAzMDQwMjI3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9a47551b501b6ee89b7ba7f1db99ef54ffadcf458aa5ef330658456be0ce014f |
| hovercard-subject-tag | issue:1431837519 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hapi-server/client-python/63/issue_layout |
| twitter:image | https://opengraph.githubassets.com/486c88cb1f843739aa49577bcd95060403deb4011c6b866ed566942c37fbb924/hapi-server/client-python/issues/63 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/486c88cb1f843739aa49577bcd95060403deb4011c6b866ed566942c37fbb924/hapi-server/client-python/issues/63 |
| og:image:alt | It would be nice to set the User-Agent so that HAPI servers can filter requests made for testing from those where it's being used for science. To set it in Python, it is something like: USER_AGENT ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jbfaden |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/hapi-server/client-python git https://github.com/hapi-server/client-python.git |
| octolytics-dimension-user_id | 22482204 |
| octolytics-dimension-user_login | hapi-server |
| octolytics-dimension-repository_id | 93170857 |
| octolytics-dimension-repository_nwo | hapi-server/client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93170857 |
| octolytics-dimension-repository_network_root_nwo | hapi-server/client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width