3 ms·
>This code doesn't escape the text, so if the text contains the letter '&' or other characters with special meanings in form URL encoding, it will break Why? P
by charcircuit 4y ago
>This code doesn't escape the text, so if the text contains the letter '&' or other characters with special meanings in form URL encoding, it will break
Why? POST data doesn't need to be URL encoded.
- eurleif 4y agoYes, it does. POST data with `Content-Type: application/x-www-form-urlencoded` uses the same encoding format as query parameters in a URL -- `foo=a&bar=b` -- hence the name.