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

Already on GitHub? Sign in to your account

User-agent not working? #402

Closed
oknoorap opened this Issue Jan 2, 2013 · 2 comments

Comments

Projects
None yet
4 participants

oknoorap commented Jan 2, 2013

I'm checking on this website :

request({
url: 'http://whatsmyuseragent.com',
headers: {
'User-agent': 'Custom User Angent'
}
}, function(err, res, body){

 console.log(body);     

});

the result was not Custom User-Agent

It works for me:

request({ 
    url: 'http://whatsmyuseragent.com',
    headers: { 'User-Agent': 'Custom User Agent' }
}, function(e,r,body) {
    console.log(body);
});

Works for me as well. Response body contains

<h2>The Elements of Your User Agent String Are:</h2>
<ul>
    <span id="body_lbElements"><li>Custom User Agent</li><span>
</ul>

@mikeal I think you can close this. It's inactive anyway.

@nylen nylen closed this May 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment