Access raw CGI post data

What’s the best way to access the raw HTTP POST data in a ruby script
being used for CGI? Is there something comparable to PHP’s
$HTTP_RAW_POST_DATA?

Thank you kindly,
Jeremy

jhw1701@yahoo.com (Jeremy Wall) writes:

What’s the best way to access the raw HTTP POST data in a ruby script
being used for CGI? Is there something comparable to PHP’s
$HTTP_RAW_POST_DATA?

Why? Just use CGI.rb, and it’ll parse all that stuff out for you.
Besides, from the very scanty info I could find from a quick Google,
PHP doesn’t guarantee you’ll even have that variable all the time.

-=Eric

···


Come to think of it, there are already a million monkeys on a million
typewriters, and Usenet is NOTHING like Shakespeare.
– Blair Houghton.