Skip to content

Ability to not send a user-agent header at all #1566

Answered by tomchristie
simonw asked this question in Ideas
Discussion options

You must be logged in to vote

Hiya Simon,

So we do provide that functionality, but not with the top-level API.

Instead you'd need to do this...

client = httpx.Client()
del client.headers["user-agent"]
client.get(...)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@aaronst
Comment options

Answer selected by tomchristie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants