0
votes

I have a website that requires a custom header to access. How do I configure JMeter to only send this custom header to the main site URL/http request sampler, and not send it to any embedded resources such as appdynamics or googleapis?

Right now, I have several "HTTP Request" samplers trying to act like a browser by using HTTP Defaults and checking the "Retrieve All Embedded Resources" box. The request URL is in the form of "https://example.com/path/." This part needs the custom header to access. When retrieving embedded resources (like fonts.googleapis.com), the custom header should not be sent. Any ideas on how I can get this configured?

1

1 Answers

0
votes

You should not be retrieving any embedded resources in your load test, you need to limit the scope of the embedded resources scanning to your application under test domain only

Any external domains like googleapis or appdynamics must be excluded via URLs must match input (lives at "Advanced" tab of the HTTP Request sampler, or even better HTTP Request Defaults)

enter image description here

More information: Excluding Domains from the Load Test