I have a HAProxy configuration which balances requests to many servers. I want to compare the outgoing request headers when requests go thru HAProxy to the ones I would make directly to my servers. For example, I want to test if my HAProxy configuration uses cookies with the client without leaking them to the outgoing servers.
What tool could I use to easily compare those headers? Is there something better than configuring Apache or nginx to log all headers?