Re: Accessing post data

Fred Appelman <[email protected]> Wed, 3 Jun 2009 23:40:31 +0200
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Thank you for the quick reply. Unfortunately this will not work for me =20=

(I think).
The payload is an XML message and that is not parameterized. I need to =20=

read the
full XML message that is in the 250 bytes.

	Fred

On 3 jun 2009, at 22:17, Sardem FF7 wrote:

> Le 03/06/2009 22:09, Fred Appelman a =E9crit :
>
>> 2. Once I have the data I am able to see that the post data has a =20
>> 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
>