How to set/modify user-agent in HTTP Request


#1

Hi Team,

My post call is giving error while using HTTP Request and it same post call is working very much fine in postman and rclient. The difference I noticed using Fiddler is User-Agent.

From postman call the user-agent looks like this " User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 " and there is no user-agent from UiPath post call

Is it possible to set/change user-agent in HTTP Request. If possible then how to do that?


#2

Have you tried adding in request Headers property?
Name : "User-Agent"
Value : “Your-CUSTOM-USER-AGENT”


#3

Above is how I’m doing @Siva_Tiyyagura , but no luck:disappointed_relieved:


#4

Below is the proper format, Should solve if its the issue with User-Agent.


#5

@Siva_Tiyyagura think double quotes are not accepting