libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Processing post data


From: Sascha Swiercy
Subject: Re: [libmicrohttpd] Processing post data
Date: Sat, 12 Jan 2013 18:04:26 +0100

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? 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?

Thanks again for your great help.

Sascha



reply via email to

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