Closed luchr closed 8 years ago
Correct me if I'm wrong, but as far as I know,
1) multipart/mixed
is not used by modern browsers or HTTP client libraries.
2) browsers or HTTP client libraries send filenames as UTF-8 encoded unicode strings nowadays.
3) see 1.
Implementing support for unused or outdated parts of am RFC is not always the right thing to do. If you find a valid use-case, however, I'd be happy to accept your pull request.
As for your other questions:
None
and None
is a perfectly fine value to use as a dictionary key. Fields without a name are parsed, and accessible through this library, as far as I remember.multipart/mixed
if it finds one. You can parse that recursively, if you want. The parse_form_data()
function is not the only entry point into this library.I added a pull request, where I tried to describe the limitations mentioned above.
No I did not read the entire RFC word by word, nor do I think someone is required to do that in order to write a useful library
Thank you for this statement/clarification. Then, I have no further questions.
There are some open problems/questions I have concerning this module:
Simple W3C-examples like https://www.w3.org/TR/html401/interact/forms.html
are not parsed correctly. [Even FieldStorage can parse this.]