libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Processing post data


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Processing post data
Date: Sat, 12 Jan 2013 18:09:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11

On 01/12/2013 06:04 PM, Sascha Swiercy wrote:
> 2013/1/12 Christian Grothoff <address@hidden>:
>> On 01/12/2013 12:56 PM, Sascha Swiercy wrote:
>>> Thank you for your answer.
>>>
>>> So regarding my second question, I think it's a good idea to simply
>>> pass the post data from MHD_get_connection_values to the callback of
>>> my post processor so I don't have to handle post data at two different
>>> places.
>>
>> You don't.  Only if your client for some reason passes the data as part
>> of the URI arguments you need to worry about getting that data via
>> MHD_get_connection_values.
>>
>> -Christian
> 
> Do you mean the case when the request method is POST but the URI
> contains arguments as if it would be a GET? 

Yes.

> I tested this case but the
> URI arguments were stored with MHD_GET_ARGUMENT_KIND as usual. I also
> couldn't find the relevant lines in your source code that would store
> post data in a way that it can be retrieved using
> MHD_get_connection_values. So could you please explain this in detail?

Yes, exactly; you would then get those using MHD_GET_ARGUMENT_KIND.

-Christian



reply via email to

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