libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Accessing raw POST payload


From: Matej Svejda
Subject: Re: [libmicrohttpd] Accessing raw POST payload
Date: Thu, 16 Oct 2014 14:02:02 +0200

Hi Christian, thank you for your reply. It seems to me that the problem is that post_iterator works only for data submitted by HTML forms and not for custom POST data. For example, if I send a request with Content-Type application/json to the post_example.c I get:

Failed to setup post processor for `/2'
Internal application error, closing connection.

If i set the Content-Type to x-www-form-urlencoded it works but still tries to parse it as key-value pairs, which in my case it shouldn't. I am looking for a way to directly access the data submitted by post, regardles of the Content-Type.

Regards,
Matej

reply via email to

[Prev in Thread] Current Thread [Next in Thread]