Is it possible to capture POST raw information from squid without the need of a scripting language.

Currently we are using PHP on top of apache to extract POST data and put it in a file. But we want to see if it is possible to do it either from Apache or Squid directly skipping the scripting language overhead.