Dear Harish,

The PostProcessor only supports parsing certain encodings, and
application/json is not among them.
This is why you get NULL. So for this type of upload, your application
has to do the parsing itself
(or use a library like libjansson).

Happy hacking!

Christian

On 06/24/2015 03:28 PM, Harish Indla wrote:
>
> Hi Christian,
>
>  
>
> I am trying to implement REST API’s using libmicrohttpd server.
>
> MHD_create_post_processor function returning NULL.
>
>  
>
> Following is the post request I am trying with.
>
> curl -v -X POST  -H 'content-type: application/json'  -d
> @testonevalue.json http://localhost:8888/interface/create
>
>  
>
> testonevalue.json is my json with input data
>
>  
>
> Please help me with this.
>
>  
>
> Thanks & Regards
>
> Harish
>
>
> . 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to