Re: Accessing post data

Sardem FF7 <[email protected]> Wed, 03 Jun 2009 22:17:11 +0200
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Le 03/06/2009 22:09, Fred Appelman a =C3=A9crit :

> 2. Once I have the data I am able to see that the post data has a size
> of 250 bytes. Also the request_method confirms there is POST data.
>    I cannot find any method to actually access these bytes. The method
> read returns nil and the functions gets, readline and readlines
>    all claim they are private to Apache::Request.
>    Since there is no documentation I am out of ideas. Does anyone know
> how to access the POST data?

Hello,

I found that the folowing code makes GET and POST data in ARGS :
ARGS =3D Apache.request.paramtable
You can access the classic $_GET['type'] (in PHP) by ARGS['type']
(mod_ruby).
So, I think, the two types of datas are the same for mod_ruby.

--=20

Sardem FF7