Commit Graph
118 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) ce38b0fa79 Renamed one new basic auth function, improved doxy 2023-10-06 14:12:31 +03:00
Christian Grothoff 0ae494028b check rvalues from MHD_post_process in examples 2023-09-25 21:38:23 +02:00
Evgeny Grin (Karlson2k) e52c9e2468 examples/sessions.c: fixed compiler warnings 2023-09-15 09:30:43 +03:00
Evgeny Grin (Karlson2k) 17b59778ea examples/sessions.c: fixed wrong check for error 2023-09-15 09:29:20 +03:00
Evgeny Grin (Karlson2k) feb9ac1f4c examples/sessions.c: removed non-portable function and improved safety 2023-06-01 10:58:16 +03:00
Evgeny Grin (Karlson2k) 3806c7ba24 examples/largepost.c: fixed caseless method match 2023-06-01 09:43:35 +03:00
Evgeny Grin (Karlson2k) 1ffe7932df Tests and examples: added rule to (re-)build libmicrohttpd.la 2022-11-06 15:01:19 +03:00
Evgeny Grin (Karlson2k) 9440f9aefe configure: do not pass AM_TESTS_ENVIRONMENT directly 2022-10-30 13:20:19 +03:00
Evgeny Grin (Karlson2k) 4adc14c948 Some readability improvements 2022-09-28 11:46:59 +03:00
Evgeny Grin (Karlson2k) 1c181be2ff Removed extra "Upgrade" token in Connection reply header in tests and examples
MHD automatically adds "Upgrade" header, no need to add it for the
second time.
2022-06-15 15:34:34 +03:00
Evgeny Grin (Karlson2k) c2414ffc9a Updated examples to use new API for Basic Authorization 2022-06-13 12:15:50 +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) 93dcf8ea91 src/examples: muted compiler warnings 2022-06-01 22:12:37 +03:00
Evgeny Grin (Karlson2k) 85ae657849 Replaced MHD_RESPMEM_PERSISTENT usage in examples and code
New functions do not produce compiler warnings.
2022-05-14 15:07:47 +03:00
Evgeny Grin (Karlson2k) a13647d1d0 Replaced MHD_RESPMEM_MUST_FREE with more portable solution in examples 2022-05-14 14:37:02 +03:00
Evgeny Grin (Karlson2k) ba77b04c65 Replaced calls of MHD_get_timeout() in tests and examples
The calls were replaced with the calls of the new functions.
Completely removed the usage of MHD_UNSIGNED_LONG_LONG.
2022-04-28 19:06:46 +03:00
Evgeny Grin (Karlson2k) 5c1e130e09 doc/examples: avoid usage of unportable functions 2022-04-23 17:11:20 +03:00
Evgeny Grin (Karlson2k) ec2d818cc4 doc/examples: improved formatting 2022-04-23 16:16:58 +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) 84a92e8a71 Added more workarounds for uncrustify bugs 2022-01-18 15:22:35 +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
Evgeny Grin (Karlson2k) a8b2cce869 doc/examples/Makefile: fixed missing file 2022-01-09 20:04:06 +03:00
Evgeny Grin (Karlson2k) 88b7523e13 Fixed compiler warning in examples 2022-01-06 19:05:41 +03:00
Evgeny Grin (Karlson2k) cbd62cc2d3 Autotools refactoring: better follow GNU coding standards
Never override CFLAGS, CPPFLAGS, and LDFLAGS in 'configure'.
Let user override compile setting as make-time almost in the same way
like at configure-time.

Removed some redundant compile settings.
2022-01-06 19:05:41 +03:00
Evgeny Grin (Karlson2k) 87ab1ec7f7 test and examples: check socket control functions results 2021-11-21 15:43:19 +03:00
Evgeny Grin (Karlson2k) f44e4bf896 websockets: fixed code style 2021-10-31 16:34:49 +03:00
David Gausmann ddad59c1e3 websocket update
- added API documentation to libmicrohttpd.texi
- added websocket tutorial chapter to libmicrohttpd-tutorial and an much easier example for the tutorial
- added additional helper functions to ease the HTTP websocket handshake
- the code can now be compiled on Linux without errors
- changed sha1.c and sha1.h to the files provided by Evgeny (I replaced those files in src/microhttpd_ws/ with the files from src/microhttpd/ - maybe there is a smarter way...?)
- removed dependency for "htons" and "htonl" (these functions are now implemented in MHD_websocket.c; no need for OS-dependent files anymore)
- added an additional test script for testing of the library with any webbrowser (for manual practice test)
- several bugfixes
- parameters renamed
- special things clarified (fragmentation, RNG for client mode)

The new version of the API is at some points incompatible with the old version, but since it was in an experimental phase and it didn't compile on Linux, I guess this shouldn't bother anyone.
From my point of view, I am now finished with the library and it could go out of experimental.
2021-10-31 16:02:31 +03:00
Evgeny Grin (Karlson2k) 0497e9c801 tlsauthentication.c: better fix for compiler warning 2021-08-25 20:22:57 +03:00
Evgeny Grin (Karlson2k) 40501c2f5d tlsauthentication.c: inelegant mute of compiler warning 2021-08-25 19:55:06 +03:00
Evgeny Grin (Karlson2k) 72e1143ce7 Fixed build with --disable-bauth 2020-12-27 18:09:43 +03:00
Evgeny Grin (Karlson2k) f53db2892e Muted compiler warnings 2020-12-27 17:35:49 +03:00
silvioprog 6c53cad4ec Fixed examples using 'enum MHD_Result'. 2020-07-25 00:07:43 -03:00
silvioprog f84bdf0a8c Sanitized all log and error messages. 2020-05-09 14:11:14 -03:00
Christian Grothoff 89d2ef9732 define and use 'enum MHD_Result' (merge) 2020-04-08 23:38:07 +02:00
Christian Grothoff de872dea2d define and use 'enum MHD_Result' 2020-04-08 23:36:41 +02:00
silvioprog bcffdf809f Applied several spelling fixes. (#6142) 2020-03-31 15:08:34 -03:00
Evgeny Grin (Karlson2k) 8aa7d23219 Partial revert of 1b610e5b13.
Implemented new functions for key and value with binary zero.
Significantly speedup search for key by using key size.
2019-05-01 22:12:24 +03:00
Christian Grothoff 1b610e5b13 allow binary zero in unescaped GET arguments (see mailinglist) 2019-03-20 10:46:21 +01:00
Christian Grothoff 832739556b some minor code cleaning issues 2018-06-22 15:16:11 +02:00
Christian Grothoff f6c647f638 make checkers happier by reducing use of strcpy and strcat 2018-02-22 18:35:08 +01:00
Christian Grothoff 330a40552c add MHD_free(), as suggested by Tim on the mailinglist 2017-10-09 22:41:11 +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) 4b795e9fc6 Added MHD_USE_AUTO and MHD_USE_AUTO_INTERNAL_THREAD to simplify using of MHD by multi-platform applications 2016-11-10 22:18:20 +03:00