Multiple choice technology security

The difference between a GET and a POST request is

  1. It does not matter, the web serve will treat all GET requests as POST requests

  2. The information in a POST request cannot be manipulated. It is possible to change a GET request

  3. A GET request is sent when requesting information; A POST request is sent when sending information

  4. The data is sent in the body of the POST request and in the URL in a GET request

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

GET requests send data in the URL query string, which is visible in browser history, server logs, and can be bookmarked. POST requests send data in the HTTP body, which is not logged or cached in the same way. GET is for idempotent information retrieval, while POST is for sending data that may cause server-side changes. The key difference is where and how the data is transmitted.