
The figure consists of 2 browser windows and 2 lines of code. The first browser window shows a form content from top to bottom as follows. Textbox 1 labeled Title colon contains the value Central Park. Textbox 2 labeled Country colon contains the value United States. A button labeled Submit is placed below textbox 2. The corresponding line of code reads as follows: open angle bracket form method equals open double quotes POST close double quotes action equals open double quotes FormProcess dot p h p close double quotes close angle bracket.
A link cursor is placed on the Submit button indicating a click on the button. This sends a request to the server from the browser as follows: POST forward slash process dot p h p h t t p forward slash 1 point 1.
The second browser window that has the text, Hyperlink, which is hyperlinked, is placed below the first browser window. The corresponding line of code reads as follows: open angle bracket “a” h r e f equals open double quotes somePage dot h t m l close double quotes close angle bracket Hyperlink open angle bracket forward slash “a” close angle bracket.
A link cursor is placed on the hyperlink indicating a click on the link. This sends a request to the server from the browser as follows: GET forward slash somePage dot h t m l h t t p forward slash 1 point 1.
Note: GET requests should NOT be used for state-changing actions open parenthesis such as modifying data close parenthesis.
Back