title: How to extend Jmeter Http Sampler to inject auth token in request?
body: <p>My requirement is I need to pick two http headers and few json fields in request body and using those values generate a auth token using Base64 encryption and set the auth Token into request body before Jmeter makes the HTTP request to the server. </p>
  
  <p>How to do this in JMeter?? </p>
  
  <p>I tried creating custom functions in JMeter but in the Function class current Sampler object is null.</p>
  
  <p>Thanks in advance.</p>