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

How to set the user agent ? #44

Closed
level09 opened this issue Jul 1, 2011 · 2 comments
Closed

How to set the user agent ? #44

level09 opened this issue Jul 1, 2011 · 2 comments

Comments

@level09
Copy link

level09 commented Jul 1, 2011

many sites like wikipedia will block the request if the user agent is not set. is there a way to set the user agent ?

@mikeal
Copy link
Member

mikeal commented Jul 1, 2011

request({headers:{'user-agent':'blah'}})
we should have a default one tho. log a ticket.

@level09
Copy link
Author

level09 commented Jul 1, 2011

Great 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

2 participants