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:54:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

Yes, you do want to keep state across calls as the data will be given to
you incrementally as it arrives over the network.
You can use the "*con_cls" storage location to store connection-specific
data.

Some example code is here:
http://www.git.taler.net/?p=mint.git;a=blob;f=src/mint/taler-mint-httpd_parsing.c;h=15c7215eae0be7d86c8501848199c982579f0a87;hb=HEAD

(the function you want is TMH_PARSE_post_json).

Happy hacking!

Christian

On 06/24/2015 03:41 PM, Harish Indla wrote:
>
> Hi Christian,
>
> Thanks for your reply.
>
> I have a doubt, my data is recieved to*answer**_**to**_**connection*in
> upload_data.
>
> I want to remember the data when it isreceivedthrough multiple iterations.
>
> What can I do instead of storing in global variable(because  I am
> using use_thread_per_connection).
>
> Thanks & Regards
>
> Harish
>


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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