URL Encoding
URL encoding is a method of wrapping up form-data in a way that will make a legal URL for a GET request.
We have seen that the encoded data consists of a sequence of name=value pairs, separated by &.
In the last example we saw that spaces are replaced by +.
Non-alphanumeric characters are converted to the form %XX, where XX is a two digit hexadecimal code.
In particular, line breaks in multi-line form data (e.g. addresses) become %0D%0A—the hex ASCII codes for a carriage-return, new-line sequence.
URL encoding is somewhat redundant for the POST method, but it is the default anyway.