Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to modify the header of all HTTP requests going through a proxy to inject some attributes into the header. I'm not planing any virus/hack/fishing, I need to test a software who has to receive some user data (id, access control params) for each http request. I cannot log in to the system since the authentication/authorization mechanism cannot be used for test purposes.

So for any http request I want to intercept it at the proxy and add attributes to the header which will help me simulate a logged user with specific credentials.

Do I need to program a servlet myselft or does any one knows of something (like HAProxy, but for windows).

thank you

share|improve this question
up vote 1 down vote accepted

WebScarab is great for this. It's a Java app, runs anywhere. Kind of painful to get SSL working right, but otherwise is fantastic.

share|improve this answer
Can it be automated? Or is only possible to intercept http and manually add something? – code-gijoe Jun 3 '11 at 14:51
@code-gijoe By automated, do you mean inject variable attribute values in the header? If so, then I'm not sure. I've only used it to inject static headers. – squillman Jun 3 '11 at 17:34
I was looking for "Bean shell". – code-gijoe Jun 3 '11 at 17:43
@code-gijoe Ah, gotcha. I've only played with that very minimally. Hope it's working well for you! – squillman Jun 3 '11 at 17:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.