aboutsummaryrefslogtreecommitdiff
path: root/src/examples
Commit message (Collapse)AuthorAge
* Remove double adding of MHD_HTTP_HEADER_CONNECTION response headerAlexander Irion2022-06-15
| | | | | | | | | | MHD_create_response_for_upgrade() already adds the MHD_HTTP_HEADER_CONNECTION response header, so the additional MHD_add_response_header is wrong. In our application it caused, that on a Apple iPad, the websocket was immediately closed by the browser(Safari, Chrome, Opera) after the protocol upgrade. Browsers on Linux, Android did not had this issue. Signed-off-by: Alexander Irion <alexander_irion@mentor.com>
* websocket_threaded_example: minor fixesEvgeny Grin (Karlson2k)2022-06-14
|
* Updated examples to use new API for Basic AuthorizationEvgeny Grin (Karlson2k)2022-06-13
|
* websocket_threaded_example: fixed sprintf() usage, compiler warningsEvgeny Grin (Karlson2k)2022-06-02
|
* examples: marked non-global variables as 'static'Evgeny Grin (Karlson2k)2022-06-02
|
* http_chunked_compression: fixed errorsEvgeny Grin (Karlson2k)2022-06-01
|
* src/examples/demo{,_https}: added some error checking, fixed compiler warningsEvgeny Grin (Karlson2k)2022-06-01
|
* src/examples/benchmark{,_https}: simplified time calculationEvgeny Grin (Karlson2k)2022-06-01
|
* src/examples/*fileserver*.c: added error checkingEvgeny Grin (Karlson2k)2022-06-01
|
* src/examples: muted compiler warningsEvgeny Grin (Karlson2k)2022-06-01
|
* Use '#ifdef PARAM' instead of '#if PARAM' for configuration optionsEvgeny Grin (Karlson2k)2022-05-16
|
* Replaced MHD_RESPMEM_PERSISTENT usage in examples and codeEvgeny Grin (Karlson2k)2022-05-14
| | | | New functions do not produce compiler warnings.
* Replaced MHD_RESPMEM_MUST_FREE with more portable solution in examplesEvgeny Grin (Karlson2k)2022-05-14
|
* Updated example to use new digest auth functionEvgeny Grin (Karlson2k)2022-05-13
|
* Replaced calls of MHD_get_timeout() in tests and examplesEvgeny Grin (Karlson2k)2022-04-28
| | | | | The calls were replaced with the calls of the new functions. Completely removed the usage of MHD_UNSIGNED_LONG_LONG.
* src/examples: fixed printf format specifiersEvgeny Grin (Karlson2k)2022-04-23
|
* websocket_threaded_example: mark function as staticEvgeny Grin (Karlson2k)2022-04-23
|
* Fixed old-style functions definitionsEvgeny Grin (Karlson2k)2022-04-23
|
* Updated test TLS certificate in test and examplesEvgeny Grin (Karlson2k)2022-04-21
| | | | The new certificate should be a bit more similar to production certs.
* src/examples: Fixed drop of 'const' qualifiers and minor fixes.Evgeny Grin (Karlson2k)2022-04-19
| | | | * some minor fixes and improvements.
* Updated docs, test, and example to use correct digest auth APIEvgeny Grin (Karlson2k)2022-01-27
|
* Fixed early response with digest auth in tests, examples, and documentationEvgeny Grin (Karlson2k)2022-01-18
|
* Renamed 'con_cls' -> 'req_cls' for access handler callbackEvgeny Grin (Karlson2k)2022-01-18
| | | | | | | | 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.
* Autotools refactoring: better follow GNU coding standardsEvgeny Grin (Karlson2k)2022-01-06
| | | | | | | | 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.
* Workarounds for uncrustify bugsEvgeny Grin (Karlson2k)2021-12-09
|
* Revert formatting broken by uncrustifyEvgeny Grin (Karlson2k)2021-12-09
| | | | | | This partially reverts commit dbe1d76d9c75a95a7ebe3042dfac7e6a7392bfb0. Looks like uncrustify has some bug resulting in C++ style comments
* -fix tests for libmagic (and uncrustify indentation)Christian Grothoff2021-12-08
|
* Minor readability improvementsEvgeny Grin (Karlson2k)2021-12-01
|
* tests and examples: fixed copy-paste errors in doxyEvgeny Grin (Karlson2k)2021-11-21
|
* test and examples: check socket control functions resultsEvgeny Grin (Karlson2k)2021-11-21
|
* Examples: fixed blocking sockets on W32Evgeny Grin (Karlson2k)2021-11-21
| | | | Sockets on W32 were non-blocking due to copy-paste errors.
* websockets: fixed code styleEvgeny Grin (Karlson2k)2021-10-31
|
* websocket updateDavid Gausmann2021-10-31
| | | | | | | | | | | | | | | | - 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.
* websocket_threaded_example: fixed compiler warning on x32 platformsEvgeny Grin (Karlson2k)2021-10-24
|
* Muted sanitizer errors on W32 platform.Evgeny Grin (Karlson2k)2021-10-06
| | | | Actually MinGW headers need to be fixed.
* Cosmetics: fixed formatting for 'examples'Evgeny Grin (Karlson2k)2021-09-17
|
* Use type specifiers for printf() from inttypes.hEvgeny Grin (Karlson2k)2021-09-17
| | | | This should improve compatibility with various C libs.
* websocket_threaded_example: fix static analyzer errorEvgeny Grin (Karlson2k)2021-08-25
|
* querystring_example: free memory with new error checkEvgeny Grin (Karlson2k)2021-08-25
|
* querystring_example: fixed compiler warning, added error checkingEvgeny Grin (Karlson2k)2021-08-25
|
* chunked_example: fixed resource leakEvgeny Grin (Karlson2k)2021-06-03
|
* chunked_example: enforce to use chunked encodingEvgeny Grin (Karlson2k)2021-05-06
| | | | | Previously MHD switches to identity encoding if connection is not Keep-Alive
* fix typosChristian Grothoff2021-04-27
|
* add David's WS exampleChristian Grothoff2021-04-26
|
* Updated test certificatesEvgeny Grin (Karlson2k)2021-04-11
| | | | | | Updated TLS test certificates with modern algorithms and correct alternative names, which is closer to real live scenarios. Examples programs work with browsers again.
* websocket_threaded_example: muted compiler warningEvgeny Grin (Karlson2k)2021-04-01
|
* Fixed analyzer warningEvgeny Grin (Karlson2k)2020-12-27
|
* Muted compiler warningsEvgeny Grin (Karlson2k)2020-12-27
|
* Examples: fixed logic errorEvgeny Grin (Karlson2k)2020-12-25
|
* examples: fixed portability and compiler warningsEvgeny Grin (Karlson2k)2020-12-24
|