Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for custom User-Agent string #15

Closed
kylewm opened this issue Apr 25, 2016 · 2 comments
Closed

support for custom User-Agent string #15

kylewm opened this issue Apr 25, 2016 · 2 comments

Comments

@kylewm
Copy link

kylewm commented Apr 25, 2016

I'd like to send my own user-agent string instead of the default python-requests one. (Wordpress installations in particular tend to block requests's UA).

@sknebel
Copy link
Contributor

sknebel commented Apr 25, 2016

Piggy-backing on this, an option to pass custom headers that are used for all requests would useful and enough to solve this.

In requests, the user-agent is changed by explicitly adding an User-agent header, and it could be used for other purposes, like passing X-Forwarded-For.

@bear
Copy link
Owner

bear commented Apr 25, 2016

both are great suggestions - I'll add them quickly

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants