aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_postprocessor.c
Commit message (Collapse)AuthorAge
* Some readability improvementsEvgeny Grin (Karlson2k)2022-09-28
|
* Internal refactoring: moved all request-related members to separate structureEvgeny Grin (Karlson2k)2022-08-06
| | | | This should improve readability of the code and simplify reset.
* src/microhttpd/test_*: more compiler warning fixedEvgeny Grin (Karlson2k)2022-06-14
|
* test_postprocessor{,_large}: additional fixes for compiler warningsEvgeny Grin (Karlson2k)2022-06-14
|
* test_postprocessor{,_amp,_large}: fixed compiler warnings, fixed extra-long ↵Evgeny Grin (Karlson2k)2022-06-13
| | | | strings
* test_postprocessor: fixed typoEvgeny Grin (Karlson2k)2022-04-25
|
* Refactoring: different types for response and request headersEvgeny Grin (Karlson2k)2022-04-17
| | | | | Request headers are always read-only (const char *), while response headers are modifiable. Should help with catching errors in code.
* test_postprocessor: changed to match current APIEvgeny Grin (Karlson2k)2021-09-20
|
* -fix typoChristian Grothoff2021-09-16
|
* test_postprocessor: added testing of hex-encoded valuesEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: report more detailsEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: added test with double valueEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: improved error reportingEvgeny Grin (Karlson2k)2021-09-15
|
* Fixed f032145edcb39e0445e4f78fec51867b9f89706cEvgeny Grin (Karlson2k)2021-09-15
| | | | | Ensure that parsing fail because of the wrong format, not because of the callback.
* test_postprocessor: added more tests for urlencodingEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: added more tests for urlencodingEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: improved error reportingEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: added more cases for urlencodingEvgeny Grin (Karlson2k)2021-09-15
|
* Missing part of cec8013b704fd5f9631f8e67bc3f807603bde9b3Evgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: integrated one check into unified testingEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: test urlencoding more thoroughlyEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: added check with empty keyEvgeny Grin (Karlson2k)2021-09-15
|
* test_postprocessor: fixed strlen() with NULLEvgeny Grin (Karlson2k)2021-09-12
|
* test_postprocessor: fixed call of memcmp() with NULL pointersEvgeny Grin (Karlson2k)2021-09-12
|
* test_postprocessor: catch impossible valueEvgeny Grin (Karlson2k)2021-09-11
|
* test_postprocessor: improved code readabilityEvgeny Grin (Karlson2k)2021-09-11
| | | | Robustness is improved as well as a side-effect
* test_postprocessor: fixed printf() called with NULL pointerEvgeny Grin (Karlson2k)2021-09-11
|
* test_postprocessor: added checks for returned valuesEvgeny Grin (Karlson2k)2021-09-10
|
* Fixed and muted compiler warningsEvgeny Grin (Karlson2k)2020-12-23
|
* fix postprocessor parser issue discovered by MDChristian Grothoff2020-07-10
|
* fix buffer overflow and add testv0.9.71Christian Grothoff2020-06-28
|
* define and use 'enum MHD_Result'Christian Grothoff2020-04-08
|
* add post processor logic fixChristian Grothoff2019-12-26
|
* more logging in testcaseChristian Grothoff2019-12-25
|
* Given post body "a&b=1", how should MHD interpret the data?Christian Grothoff2019-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm at the end of a long investigation and it's come down to that question for post_process_urlencoded() in MHD. MHD currently calls back with ("a&b", "1"). The app I'm working breaks when it doesn't receive a callback for "b". The http client in this case (that did the urlencoding) is google-http-java-client 1.23.0. The client behavior may be questionable, but MHD's behavior doesn't seem right either. Isn't there some principle, "clients should strive for conformance, servers should strive for forgiveness". I've attached a patch to MHD to add a failing test, but without a fix. As for relevant standards, the W3C[1] is not detailed enough to cover it. The WhatWG[2] is more specific and allows for empty values and even empty keys. I'd like to callout uriparser[3], another C library I've patched in as a work-around. Uriparser documents their handling of these cases well: * NULL in the value member means there was no '=' in the item text as with "?abc&def". * An empty string in the value member means there was '=' in the item as with "?abc=&def". [1] https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 [2] https://url.spec.whatwg.org/#urlencoded-parsing [3] https://uriparser.github.io/doc/api/latest/#querystrings commit aa0534af56d135e1b261d127af09c22015c1ff87 Author: Ethan Tuttle <ethan@ethantuttle.com> Date: Tue Dec 24 03:50:59 2019 -0800 urlencoding post-processor: add failing tests for keys without values
* tighten formatting rulesChristian Grothoff2019-10-31
|
* applying uncrustify to ensure uniform indentationChristian Grothoff2019-10-17
|
* test_postprocessor*: fixed to use updated struct MHD_HTTP_HeaderEvgeny Grin (Karlson2k)2019-05-03
|
* check response allocation succeeded when generating internal errorsChristian Grothoff2018-06-22
|
* Fixed compiler warnings for tests in src/microhttpdEvgeny Grin (Karlson2k)2017-09-29
|
* fix more clang warnignsChristian Grothoff2016-10-17
|
* Moved generic emulated functions to mhd_compat.h/.c, removed "platform" dir,Evgeny Grin (Karlson2k)2016-08-23
| | | | removed "w32functions.h/.c"
* fix #3869: outdated FSF addressChristian Grothoff2015-06-30
|
* -bringing copyright tags up to FSF standardChristian Grothoff2015-02-07
|
* Implement MHD_W32_random(), replace RANDOM() -> MHD_random_()Evgeny Grin (Karlson2k)2014-02-18
|
* -fix post processor, expanded test suite to cover garbage before payloadChristian Grothoff2013-10-30
|
* Add a variant of multipart preprocessor test that splits data in two partsLRN2013-10-30
| | | | | | | | | before feeding it to the preprocessor, trying all possible points where data can be split. Prior to r30427 this test would have crashed only if data is split at the very beginning (< 11). After r30427 this test crashes every time the data is split somewhere around the boundary. At least that is the case on W32.
* -changing directory nameChristian Grothoff2013-05-05