
The figure consists of a browser that contains a form content. The form content from top to bottom are as follows. Textbox 1 labeled Artist colon that contains the value Picasso. Textbox 2 labeled Year colon that contains the value 1906. Textbox 3 with a dropdown list labeled Nationality colon that contains the value Spain as the selected value. A button labeled Submit.
The GET method associated with the Submit button reads as follows.
open angle bracket form method equals open double quotes GET close double quotes action equals open double quotes process dot p h p close double quotes close angle bracket.
GET process dot p h p question mark artist equals Picasso ampersand year equals 1906 ampersand nation equals Spain h t t p forward slash 1 point 1. artist equals Picasso ampersand year equals 1906 ampersand nation equals Spain is the query string for the GET method.
The POST method associated with the Submit button reads as follows.
open angle bracket form method equals open double quotes POST close double quotes action equals open double quotes process dot p h p close double quotes close angle bracket.
The data sent to the server with POST is as follows.
Line 1: POST process dot p h p H T T P forward slash 1 point 1.
Line 2: Date colon Sun comma 15 Jan 2017 23 colon 59 colon 59 G M T.
Line 3: Host colon w w w dot mysite dot com.
Line 4: User hyphen Agent colon Mozilla forward slash 4 point 0.
Line 5: Content hyphen Length colon 47.
Line 6: Content hyphen Type colon application forward slash x hyphen w w w hyphen form hyphen u r l encoded.
Line 7: artist equals Picasso ampersand year equals 1906 ampersand nation equals Spain.
Lines 1 to 6 are a part of the H T T P header. Line 7 is the query string for the POST method.
Back