access raw CGI post data

Discussion in 'Ruby' started by Jeremy Wall, Feb 10, 2004.

  1. Jeremy Wall

    Jeremy Wall Guest

    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
    Jeremy Wall, Feb 10, 2004
    #1
    1. Advertising

  2. (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.
    Eric Schwartz, Feb 10, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charlie Taylor
    Replies:
    0
    Views:
    509
    Charlie Taylor
    Nov 18, 2003
  2. Erik Johnson

    cgi: getting at raw POST data?

    Erik Johnson, Feb 26, 2005, in forum: Python
    Replies:
    3
    Views:
    1,160
    Tim Roberts
    Feb 27, 2005
  3. Replies:
    5
    Views:
    1,067
  4. Dodo
    Replies:
    13
    Views:
    1,995
  5. Carlo Razzeto

    Webservices with raw post data

    Carlo Razzeto, Nov 30, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    487
Loading...

Share This Page