libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Support for HTTP PUT


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Support for HTTP PUT
Date: Wed, 31 Mar 2010 23:36:06 +0200
User-agent: KMail/1.12.4 (Linux/2.6.31-14-generic; KDE/4.3.5; i686; ; )

On Saturday 27 March 2010 04:35:34 pm John Lee wrote:
> Hello there,
> This probably breaks HTTP philosophy but for my applications there is no
> semantic difference between a PUT and a POST.
> 
> 1) How is a non-chunked PUT meant to work? Same as POST?

Yes, MHD does not really distinguish between PUT and POST.  

> 2) How is a chunked PUT meant to work?

As with POST, the chunking is taken care of by MHD (in the same way as MHD 
deals with large uploads: individual chunks are passed to the access handler, 
not by assembling one huge block in memory!).  

> 3) Do you have any examples?

Read src/testcurl/daemontest_put_chunked.c

Best,

Christian




reply via email to

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