access raw CGI post data

J

Jeremy Wall

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
 
E

Eric Schwartz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top