libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] "MHD_create_post_processor" returning NULL


From: Christian Grothoff
Subject: Re: [libmicrohttpd] "MHD_create_post_processor" returning NULL
Date: Wed, 24 Jun 2015 15:37:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

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

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