Http request - set user agent

#1

Hi Folks

I'd like to be able to set the http request user agent as:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

I realise I need a function that injects this into the request, just not sure how to set this up ?

A little guidance please :slight_smile:
Thankyou..Pete

0 Likes

#2

This page shows you how to set a request header https://cookbook.nodered.org/http/set-request-header

So try setting User-Agent and see if it works

0 Likes

#3

ukmoose, thankyou...I set an arbitrary string and was able to get to the website :slight_smile: With the default it gave me "unauthorised" :slight_smile:
Cheers

0 Likes