Summary: Incorrect handling of empty form fields when using Enctype=MULTIPART/FORM-DATA.
If contents of a form item are null, the rpHTTPD returns 400 error. For example:
-----------------------------14162188131998
Content-Disposition: form-data; name="szMailRecv4"
<-- empty field
-----------------------------14162188131998
Content-Disposition: form-data; name="control_type"
Apply
-----------------------------14162188131998--
-->
HTTP/1.1 400 Bad Request
Content-Length: 0
Server: ---
There is a workaround to avoid this bug:
-----------------------------47452064913186
Content-Disposition: form-data; name="szMailRecv2"
test2@mail.ru
-----------------------------47452064913186
Content-Disposition: form-data; name="szMailRecv3"
<-- Note the space.
-----------------------------47452064913186
Content-Disposition: form-data; name="control_type"
Apply
-----------------------------47452064913186--
-->
HTTP/1.1 303 See Other
Location: http://192.168.1.29/---.htm
Content-Length: 0
Server: ---
Now it works normally, but it requires an additional processing by both JS and application code.