Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6343797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:30:56+00:00 2026-05-24T20:30:56+00:00

Hopefully this is a common issue with JMeter testing. I setup a Proxy Server

  • 0

Hopefully this is a common issue with JMeter testing.

I setup a Proxy Server via JMeter to ‘record’ a test case in our DEVELOPMENT environment. That worked fine and I setup some ‘HTTP Request Defaults‘ to globally set the default ‘Server Name or IP’ and ‘Protocol’.

Now that the tests are completed on DEV, we have moved our code to our QA servers for more testing — and I thought I would simply have to change the ‘Server Name’ in my defaults and then run the tests.

One thing I noticed is that for each sampler in my test case, other headers are present in the ‘HTTP Header Manager‘ for that specific sampler — like User-Agent, Cache-Control, etc. The Referer header is the only one that concerns me because it still is ‘hard coded’ to be the DEV server.

Is there a way to set this dynamically — so that I can run this recorded test in multiple environments? How is this normally handled?

Any help is appreciated! Thanks.

jg

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:30:57+00:00Added an answer on May 24, 2026 at 8:30 pm

    Jmeter will read the HTTP Request Defaults only if no value is provided in the HTTP Request. If you leave the domain blank in the request, it will read from the request; else it use the local value.

    As a quick fix, open your JMX file in a text editor and replace all instance of the domain with a blank value. Once you open your file back in Jmeter, add the domain value back into your HTTP Request Default config element.

    To avoid this in the future, fill out the Request Default values BEFORE recording. Jmeter will automatically filter out values that match the default.

    You can also do this with variables and user defined values. Be careful what default values you set. For example, if you said customerID = 123, any time Jmeter detects ‘123’ while recording, it will replace it with ${customerID}. So, if there is the value ‘12345’, Jmeter will record ${customerID}45

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

it's common to see something like this in code, hopefully only during development: //XXX:
Hopefully I can explain this without overcomplicating the issue, so please bear with me.
Hopefully this will not spark a religious war... We have a web based app
Hopefully this is a simple one, but can anyone provide some simple c# code
Hopefully this still falls within StackOverflow's umbrella! I'm looking to create a quick boot
Hopefully this is a really quick one ;) I have written a lexer /
Hopefully this is simple: I have a relatively long list where each list item
hopefully this doesn't sound ridiculous, but are some parts of the web.config not required
hopefully this will be an easy answer for some of you CSS veterans out
Hopefully this question isn't as subjective as I think it may be. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.