Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

User-agent not working? #402

Closed
oknoorap opened this Issue · 2 comments

4 participants

@oknoorap

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

@bfontaine

It works for me:

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.