b0ne has asked for the wisdom of the Perl Monks concerning the following question:

I'm using awesome HTTP::Proxy together with HTTP::Proxy::BodyFilter and HTTP::Proxy::HeaderFilter. BodyFilter and HeaderFilter are working great, but I need header and body together. The problem is I don't know how to match corresponding Body with Header. I have to log whole HTTP request (header and body), but in reality I don't have to change request itself. Is HTTP::Proxy right path? How I can match header and body of same request?
  • Comment on Match header and body in HTTP proxy request

Replies are listed 'Best First'.
Re: Match header and body in HTTP proxy request
by Corion (Patriarch) on Apr 05, 2015 at 07:15 UTC
      Thanks on your answer. HTTP::Proxy::BodyFilter::complete AFAIK handles complete Body (does not include headers). I need Body and Headers (complete request). Body is not enough...
Re: Match header and body in HTTP proxy request
by choroba (Cardinal) on Apr 05, 2015 at 07:38 UTC
    Crossposted at StackOverflow. It's considered polite to inform about crossposting, so people not attending both sites don't waste their time hacking a solution to a problem already solved at the other end of the internet.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Sorry for that. Anyway, If it will be solved somewhere or by myself, I plan to immediately post on other side(s).