Doesn't $GLOBALS['HTTP_RAW_POST_DATA'] have this info?
it should but it does not!. It only gets populated when the encoding is unknown.
I think Chris has already given a good suggestion. An alternative would be to POST to a perl script and just echo the input from stdin to stdout.
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.