Hi, could MHD_OPTION_STRICT_FOR_CLIENT be more strict regarding spaces in the 'resource' of HTTP requests, please ?
Currently MHD accepts spaces (instead %20 resp. +) and converts them to + for the return value of MHD_get_connection_values(). This makes a test for wget2 succeed though wget2 doesn't send a correct request line. (Only on older versions of MHD this test fails). The appropriate code seems to be in parse_initial_message_line(): /* Search from back to accept misformed URI with space */ With Best Regards, Tim
signature.asc
Description: OpenPGP digital signature