[libmicrohttpd] POST processing "any" mime type

2011-11-24 Thread Andreas Wehrmann
t do you think? Best regards, Andreas Wehrmann -- Dipl.-Ing. (FH) Andreas Wehrmann Software Development -- Center Communication Systems GmbH A-1210 Wien, Ignaz-Köck-Straße 19 Sitz in Wien FN 796 88p, Firmenbuchgericht Wien www.centers

Re: [libmicrohttpd] POST processing "any" mime type

2011-11-24 Thread Andreas Wehrmann
On 11/24/2011 11:16 AM, Andreas Wehrmann wrote: I noticed that MHD_create_post_processor() refuses to create a processor when the MIME type is not "application/x-www-form-urlencoded" or "multipart/form-data". However, I'd like to post process data of a different type

[libmicrohttpd] MHD_destroy_post_processor() is unsafe

2011-11-24 Thread Andreas Wehrmann
I ran into a segfault today, caused by passing NULL to MHD_destroy_post_processor(). This function doesn't check whether *pp is NULL, see postprocessor.c:1027 (version 0.9.17). Regards, Andreas -- Dipl.-Ing. (FH) Andreas Wehrmann Software Develo

Re: [libmicrohttpd] POST processing "any" mime type

2011-11-24 Thread Andreas Wehrmann
ects the data and passes it on. Regards, Andreas -- Dipl.-Ing. (FH) Andreas Wehrmann Software Development -- Center Communication Systems GmbH A-1210 Wien, Ignaz-Köck-Straße 19 Sitz in Wien FN 796 88p, Firmenbuchgericht Wien www.centers

Re: [libmicrohttpd] MHD_destroy_post_processor() is unsafe

2011-11-24 Thread Andreas Wehrmann
me are not, I think the library should be clear on this. Regards, Andreas -- Dipl.-Ing. (FH) Andreas Wehrmann Software Development -- Center Communication Systems GmbH A-1210 Wien, Ignaz-Köck-Straße 19 Sitz in Wien FN 796 88p, Fi

Re: [libmicrohttpd] POST data sequence question

2011-12-20 Thread Andreas Wehrmann
ssion that this will not happen but I just want to make sure. You don't need to worry about out-of-order data since HTTP is built upon TCP. Regards, Andreas -- Dipl.-Ing. (FH) Andreas Wehrmann Software Development -- Center Communic

Re: [libmicrohttpd] POST processing "any" mime type

2014-05-23 Thread Andreas Wehrmann
On 05/22/2014 07:49 PM, Shantanu Tushar Jha wrote: [Please CC me in replies, I'm not subscribed to the list] Hi, I was searching about how to process application/json in POST data in a server written using MHD. I came across this thread http://lists.gnu.org/archive/html/libmicrohttpd/2011-11/m

[libmicrohttpd] Digest Authentication not working when request URI is escaped

2015-05-26 Thread Andreas Wehrmann
Hi! I'm currently messing around with digest authentication and found a problem (latest SVN). Digest authentication works fine iff the URI requested by the client is not escaped (i.e. contains no space or some other 'weird' character). If the request URI is escaped, the check in MHD_digest_au

[libmicrohttpd] memleak in digestauth.c @ check_argument_match()

2015-06-04 Thread Andreas Wehrmann
Hi! I was checking a test app in valgrind and much to my surprise it was complaining about a memleak in libmicrohttpd. In check_argument_match() a buffer is allocated using strdup() but freed nowhere. I wouldn't have noticed this leak if it wasn't for valgrind because if a URI is requested wit

[libmicrohttpd] Make MHD_get_reason_phrase_for() public

2015-08-14 Thread Andreas Wehrmann
Hi! I wanted to ask if you could please make the function MHD_get_reason_phrase_for() a public symbol. I found it very useful for generating error pages and extensive logging purposes. Best regards, Andreas

Re: [libmicrohttpd] Anyone wants openssl support in libmicrohttpd?

2015-11-09 Thread Andreas Wehrmann
On 11/06/2015 02:33 PM, Christian Grothoff wrote: On 11/06/2015 02:25 PM, Olaf Buddenhagen wrote: I don't mind refactoring -- though I obviously can't talk anything specific here until I gain some grasp of the code. It's the dynamic loading idea that I really don't feel like implementing... I'd

Re: [libmicrohttpd] Bug in largepost.c example

2015-12-11 Thread Andreas Wehrmann
On 12/11/2015 08:51 AM, Anton Botvalde wrote: Hello, In the largepost.c example the iterate_post callback has a bug in fwrite - if (size > 0) { if (!fwrite (data, size, sizeof (char), con_info->fp)) return MHD_NO; } should be if (size > 0) { if (!fwr

Re: [libmicrohttpd] Fwd: Maintaining libmicrohttpd

2015-12-23 Thread Andreas Wehrmann
On 12/22/2015 06:42 PM, Hein-Pieter van Braam wrote: Hi, Sorry, it was just a silly joke. Gopher is an (arguably) obsolete protocol that predates the web and HTTP. https://en.wikipedia.org/wiki/Gopher_%28protocol%29 It was just sillyness. Though I found it amusing :-) I guess most people

Re: [libmicrohttpd] Query on async response using microhttpd

2016-08-01 Thread Andreas Wehrmann
On 07/29/2016 07:28 PM, Geetha Shanmugam wrote: Hi, We are trying to use libmircohttpd in the following scenario. Process P1 start MHD daemon in the external select mode. It has to communicate to another process say P2 to send out the response. The communication between P1 and P2 are via so