Setting user agent #2117
DanielHougaard
started this conversation in
General
Replies: 1 comment
-
Hi again. I missed a crucial part of the documentation and I have just found the solution. this.client = got.extend({
headers: { // This!
'user-agent': // Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36....
},
agent: {
http: new HttpsProxyAgent(formattedProxy),
},
cookieJar: this.jar,
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, how would one go about setting the user agent on a client? I have included my code below for reference
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions