Kent Sibilev wrote:
> GET parameters you have to parse from ENV['QUERY_STRING'].
> POST parameters you parse from standard input. It gets more complicated
> for multipart forms though.
>
> CGI object provides you with exactly this functionality. I wonder does
> it make sense to implement CGI class as a native extension?
>
> Cheers,
> Kent.
>
> On Nov 4, 2004, at 4:03 PM, J. D. wrote:
>
>> Hi,
>>
>> How do I retrieve form parameters with FCGI in a way that works for
>> both GET and POST?
>>
>> I'm using FCGI.each{|request| ...} and trying to avoid the need to use
>> the CGI object.
>>
>
>
>
I see. So I guess, I'd have to do a $stdin = req.in and manually parse
in order to handle POST requests using FCGI (if I want to avoid using
CGI object).