Encoding involves replacing spaces and other special characters in
the query strings with their hexadecimal equivalents. (Thus, URL
encoding is also sometimes called hexadecimal
encoding.) Suppose a user fills out and submits a form
containing his or her birthday in the syntax mm/dd/yy (e.g.,
11/05/73). The forward slashes in the birthday are among the special
characters that can't appear in the
client's request for the CGI program. Thus, when the
browser issues the request, it encodes the data. The following sample
request shows the resulting encoding:
POST /cgi-bin/birthday.pl HTTP/1.0
Content-length: 21
birthday=11%2F05%2F73
The sequence %2F is actually the hexadecimal
equivalent of the slash character.