«^»
5.1. HTTP GET and HTTP POST requests

Although most WWW pages are produced by means of an HTTP GET request, some WWW pages are the result of an HTTP POST request. HTTP POST requests often occur when you click on the submit button of a web form. For example, suppose a WWW page provides the following web form:

0185: <form method="POST" action="http://www.a.com/pictures/query.php">
0186:     <input type="text" name="last"/>
0187:     <input type="text" name="first"/>
0188:     <input type="text" name="age"/>
0189:     <input type="submit" value="submit/>
0190: </form>
Suppose the visitor to this WWW page types some values (say Bloggs, Fred and 27) into the three textboxes and then clicks the submit button. Because the form has a method attribute of "POST", an HTTP POST request will be generated:
0191: POST /pictures/query.php HTTP/1.1
0192: Host: www.a.com
0193: Content-Type: application/x-www-form-urlencoded
0194: Content-Length: XXXX
0195: 
0196: last=Bloggs&first=Fred&age=27