title: How to dynamically set the HTTP Referer header in JMeter?
body: <p>Hopefully this is a common issue with JMeter testing.</p>
  
  <p>I setup a Proxy Server via JMeter to 'record' a test case in our DEVELOPMENT environment.  That worked fine and I setup some '<strong>HTTP Request Defaults</strong>' to globally set the default 'Server Name or IP' and 'Protocol'.  </p>
  
  <p>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.  </p>
  
  <p>One thing I noticed is that for each sampler in my test case, other headers are present in the '<strong>HTTP Header Manager</strong>' for that specific sampler -- like User-Agent, Cache-Control, etc.  The <strong>Referer</strong> header is the only one that concerns me because it still is 'hard coded' to be the DEV server. </p>
  
  <p>Is there a way to set this dynamically -- so that I can run this recorded test in multiple environments?  How is this normally handled?  </p>
  
  <p>Any help is appreciated!  Thanks.</p>
  
  <p>jg</p>