0

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

1 Answer 1

1

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

4
  • Can it be automated? Or is only possible to intercept http and manually add something?
    – code-gijoe
    Jun 3, 2011 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, 2011 at 17:34
  • I was looking for "Bean shell".
    – code-gijoe
    Jun 3, 2011 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, 2011 at 17:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .