34 Commits
Author SHA1 Message Date
Christian Grothoff 0ae494028b check rvalues from MHD_post_process in examples 2023-09-25 21:38:23 +02:00
Evgeny Grin (Karlson2k) 3806c7ba24 examples/largepost.c: fixed caseless method match 2023-06-01 09:43:35 +03:00
Evgeny Grin (Karlson2k) bd9b7be732 doc/examples: fixed compiler warnings 2022-06-02 09:43:12 +03:00
Evgeny Grin (Karlson2k) 8da7be3b7b examples: marked non-global variables as 'static' 2022-06-02 09:07:48 +03:00
Evgeny Grin (Karlson2k) 28f02d2eaa doc/examples: do not use non-literals for printf() 2022-04-23 16:16:22 +03:00
Evgeny Grin (Karlson2k) 351d8a65d6 Fixed old-style functions definitions 2022-04-23 15:21:19 +03:00
Evgeny Grin (Karlson2k) 4b6419b1f3 doc/examples: Fixed drop of 'const' qualifiers 2022-04-19 20:27:37 +03:00
Evgeny Grin (Karlson2k) ba2d078858 largepost: fixed code style 2022-01-18 15:19:13 +03:00
Evgeny Grin (Karlson2k) bd41946e8f Renamed 'con_cls' -> 'req_cls' for access handler callback
The argument is actually request-specific, not connection specific. The
name was confusing.
Fixed related documentation and clarified usage.

Also fixed code where argument named 'unused' was actually used.
2022-01-18 15:18:40 +03:00
silvioprog f84bdf0a8c Sanitized all log and error messages. 2020-05-09 14:11:14 -03:00
Christian Grothoff de872dea2d define and use 'enum MHD_Result' 2020-04-08 23:36:41 +02:00
Christian Grothoff 1a23dd25c3 misc style improvements, fixing some tiny rare memory leaks in examples 2017-10-05 23:16:19 +02:00
Evgeny Grin (Karlson2k) a5b63e992b Muted compiler warnings in examples. 2017-09-29 22:07:49 +03:00
Christian Grothoff 59268ccff1 Still there is an issue with re-open a file. Patch applied below to
avoid it.

Also iterate_post() always returns MHD_OK, because the app's logic
driven
from the value of con_info->answercode().
And in case if fwrite() fails we also update the answer code & page  and
MHD_post_process() overwrite them (fileioerror becomes postprocerror).
2017-03-14 02:41:50 +01:00
Christian Grothoff 740a46dd36 fix largepost example, must only queue replies either before upload happens or after upload is done, not while upload is ongoing 2017-03-11 12:07:38 +01:00
Evgeny Grin (Karlson2k) a48ca85fb7 Renamed daemon flags:
MHD_USE_SELECT_INTERNALLY -> MHD_USE_INTERNAL_POLLING_THREAD
MHD_USE_POLL_INTERNALLY -> MHD_USE_POLL_INTERNAL_THREAD
MHD_USE_EPOLL_INTERNALLY -> MHD_USE_EPOLL_INTERNAL_THREAD
2016-11-08 00:54:59 +03:00
Evgeny Grin (Karlson2k) dc1eb9a9d7 largepost.c: corrected const pointer to const char 2016-04-11 14:52:17 +00:00
Evgeny Grin (Karlson2k) d4d4393a16 Added check result of MHD_post_process() in largepost.c 2016-04-11 14:08:30 +00:00
Evgeny Grin (Karlson2k) 2cf1ffafba largepost.c: fixed compiling by VS 2016-04-11 14:08:18 +00:00
Christian Grothoff 26a19e6787 cleaning up largepost 2015-12-11 22:29:46 +00:00
Christian Grothoff 14dad00f46 cast intentionally ignored return values to void, even in examples 2013-06-21 17:55:34 +00:00
LRN aeaea9eda2 W32 compatibility, also use ISO C instead of POSIX 2013-04-23 11:38:09 +00:00
Christian Grothoff 9c62ac3733 -fix double-close 2013-03-12 14:23:57 +00:00
Christian Grothoff bf92eff1f8 close file, clarify license 2012-08-23 12:36:18 +00:00
Christian Grothoff 7c89f644a1 need to use must copy, as page is on the stack 2012-08-14 18:37:27 +00:00
Christian Grothoff e815956b7b specify content type 2012-08-14 17:16:38 +00:00
Christian Grothoff 300f5594b1 making examples compile without warnings 2012-08-14 17:10:50 +00:00
Christian Grothoff 43542a78c6 introducing MHD_create_response_from_buffer, deprecating MHD_create_response_from_data 2011-01-04 12:40:03 +00:00
Christian Grothoff 761267757c ready for 0.9.0 2010-07-26 16:57:47 +00:00
Nils Durner 1b0b8c014d use untranslated file input mode, important on Windows 2010-01-20 21:07:20 +00:00
Christian Grothoff b90c37b2f3 incompatible API change to allow 64-bit uploads and downloads on 32-bit systems 2009-02-06 06:12:33 +00:00
Sebastian Gerhardt 88d10158d9 Upgraded & tested tutorial for version 0.4 prerelease0 2008-11-01 08:18:13 +00:00
Christian Grothoff 705bb243b0 indentation 2008-10-13 02:03:03 +00:00
Sebastian Gerhardt 2b583e7140 Added tutorial chapter: processing of large posts 2008-08-31 10:06:55 +00:00