libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Chunked transfer encoding


From: Markus Doppelbauer
Subject: Re: [libmicrohttpd] Chunked transfer encoding
Date: Mon, 22 Jun 2015 11:10:52 +0200

Hi Christian,

Thanks a lot for your answer.
Your software is superior (all the "alternatives" from your website
are not fit to hold a candle to you).

Greetings from Austria!
Markus



Am Montag, den 22.06.2015, 10:42 +0200 schrieb Christian Grothoff:
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


reply via email to

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