How to deal with a jmeter script if the User-agent field is not there in ASM UI ?
search cancel

How to deal with a jmeter script if the User-agent field is not there in ASM UI ?

book

Article ID: 396037

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

Where do I set the User-agent field for a Jmeter script?

Resolution

  • JMeter did not have a custom User-Agent field, transaction tags header and placeholders work but only in that header (the hack of adding User-Agent into the transaction tag header field won't work)
  • The reason why JMeter never had a custom User-Agent is that you can control it inside the script
  • It can be set at the top level of the script and will work for all requests, unless there are same headers with different content along with each request as is the case with recorded scripts