[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Chunked transfer encoding
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] Chunked transfer encoding |
Date: |
Mon, 22 Jun 2015 10:42:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 |
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
0xE29FC3CC.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature