You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kevac Marko <ma...@kevac.org> on 2009/12/12 17:09:01 UTC

[users@httpd] Module to accept and parse POST in JSON

Hello

Is there any module similar to mod_form
(http://apache.webthing.com/mod_form/) which is able to accept and
parse POST request in JSON format (application/json)?

Thanks.

-- 
Marko Kevac
Sent from Moscow, Mow, Russia

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Module to accept and parse POST in JSON

Posted by Kevac Marko <ma...@kevac.org>.
Ruby on Rails application (Active Resource as far as i remember) sends
request arguments via POST and PUT in JSON format (application/json).
I needed the way to parse these arguments and put them in apr_table_t
structure.

Anyway, I have already made such module. Called it mod_args. Module
parse normal arguments (?var1=lala&var2=lala), POST and PUT arguments
in uuencode form (from html forms) and POST and PUT arguments in JSON
form using small libjson library.

I will soon share this module on GPL (most probably) licence terms.

On Mon, Dec 21, 2009 at 3:52 AM, Devraj Mukherjee <de...@gmail.com> wrote:
> It might help if you describe what you are trying to achieve and we
> might be able to give you a better answer.
>
> On Sun, Dec 13, 2009 at 3:09 AM, Kevac Marko <ma...@kevac.org> wrote:
>> Hello
>>
>> Is there any module similar to mod_form
>> (http://apache.webthing.com/mod_form/) which is able to accept and
>> parse POST request in JSON format (application/json)?
>>
>> Thanks.
>>
>> --
>> Marko Kevac
>> Sent from Moscow, Mow, Russia
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>
> --
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
Marko Kevac
Sent from Moscow, Mow, Russia

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Module to accept and parse POST in JSON

Posted by Devraj Mukherjee <de...@gmail.com>.
It might help if you describe what you are trying to achieve and we
might be able to give you a better answer.

On Sun, Dec 13, 2009 at 3:09 AM, Kevac Marko <ma...@kevac.org> wrote:
> Hello
>
> Is there any module similar to mod_form
> (http://apache.webthing.com/mod_form/) which is able to accept and
> parse POST request in JSON format (application/json)?
>
> Thanks.
>
> --
> Marko Kevac
> Sent from Moscow, Mow, Russia
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org