On 06/22/2015 09:41 AM, Markus Doppelbauer wrote:
> Hi Christian,
>
> Thanks a lot for your answer.
> The email was very unclear - sorry.
>
> My question is, whether chunked encoded "POST" requests are de-chunked
> by MHD?
> Nginx for example supports chunked encoded post requests.
MHD does as well, the de-chunking of uploaded data happens behind the
scenes with MHD, your application has to do nothing (except, I guess, to
simply *ignore* the transfer-encoding header ;-)).
If you want to see details, look for this in connection.c:
/**
* Call the handler of the application for this
* connection. Handles chunking of the upload
* as well as normal uploads.
*
* @param connection connection we're processing
*/
static void
process_request_body (struct MHD_Connection *connection)
{
// ...
}
Happy hacking!
-Christian