CSci 115: Computing and the Internet
Home Syllabus Assignments Tests

Final Review

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Problem Finr.1.

HTTP defines two methods for delivering data from a user's form entries to the server: GET and POST. Explain how they are different.

In sending form data using the GET method, all of the form data is incorporated into the URL request sent to the server, with a question mark separating the name of the file which should process the data from the actual data itself. In the HTTP protocol, this form data will be on the first line of the request sent to the server, followed by the auxiliary header information.

With the POST method, the browser sends the header first specifying only which file should process the data; then it sends the form data as the body of the request, following the auxiliary header information.