2

I am using J meter tool, I need to send the user name along with the HTTP header data so that I can see in the access log which user is failing. I tried adding the variable in the header Manager: user name : ${variable} The variable i am reading form config data file when I run this I don't even see the variable send in the request in the access logs. Can any one please help!

3
  • Is the http header manager within the scope of the request itself? Commented Dec 5, 2013 at 13:57
  • I have tried adding the http header manager in the sampler and even tried removing from each sample and adding one in the loop controller. but its not working Commented Dec 6, 2013 at 17:15
  • Can you add a few screenshots? Commented Dec 7, 2013 at 9:53

1 Answer 1

1

First of all, you can not have spaces in HTTP Headers.

You'll have to change your user name header name to something like username or user-name elsewise your request will be rejected by HTTP server (if not earlier)

See Using JMeter's HTTP Header Manager guide for details.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.