[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] How can I decode the form-data fields with MHD_http_
From: |
Evgeny Grin |
Subject: |
Re: [libmicrohttpd] How can I decode the form-data fields with MHD_http_unescape() function? |
Date: |
Tue, 16 Feb 2016 15:29:53 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
There is a conflict between standards.
HTML states that "+" must be decoded to space in url-encoding.
https://www.w3.org/TR/html/forms.html#url-encoded-form-data
RFC 3986 doesn't assume any special treatment of "+".
https://tools.ietf.org/html/rfc3986
On 16.02.2016 13:34, Evgeny Grin wrote:
> May be we should change decoding algorithm.
> According to current HTML standard
> https://www.w3.org/TR/html5/forms.html#url-encoded-form-data symbol
> "+" must be decoded as space. This standard uses old RFC for
> encoding/decoding http://www.ietf.org/rfc/rfc1738.txt
> But in "path" part of URI, space symbol must be encoded as %20.
- --
Best Wishes,
Evgeny Grin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJWwxZBAAoJEL96xKXqwrr07+oH/1vfhs2qxiz9fSTTKm8Bwejw
tkba0iijWKF2LMsbcMSFPdIHod+btwcqCva/tAF4xyCUJ2s9M0QMNJVPJwXmeHVa
+zEQO4UdT1HYY7RMl9ATrYZGaxSjiOdHzBmCViAX3JW6TqY5MYx+5QXuavOqdiZr
kY0KiyHENPjbWnm3asMU3thLlfegHY8Cqbt7L4ib8JbuDVMspCXYoC1ZcmfxQGuA
Uy0fFuEHKF/J4+BdhPV7Nnwzus5ckDvNQ8VQUt4GpnA3JDIjhf/0kmzcrX6aLt78
zg8S8NIyMScLuqiAsd+/zF6eS28cMUdDDuiPz7sGKgJw6QEZAjf20pHvndvlcoY=
=aISi
-----END PGP SIGNATURE-----