Multiple choice technology security

Web server will log which part of a GET request?

  1. Hidden tags

  2. Query Strings

  3. Header

  4. Cookies

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

In a GET request, the query string (the part after '?' in the URL) is logged by web servers. This is standard behavior for access logs. Hidden tags (A) are in HTML forms, not URLs. Headers (C) and cookies (D) are sent in the HTTP request but are not part of the URL itself, though servers can optionally log them. The query string is always visible in server logs by default.

AI explanation

To answer this question, you need to understand the components of a GET request.

A GET request is an HTTP request method used to retrieve data from a server. It consists of several parts, including the headers and the query string.

The correct answer is B) Query Strings.

Query strings are a part of the URL that contains data to be sent to the server as part of the GET request. They are appended to the URL after a question mark '?' and consist of key-value pairs separated by an ampersand '&'.

For example, in the URL "http://example.com/path?param1=value1&param2=value2", the query string is "param1=value1&param2=value2". The server will log the query string as it contains the additional data sent with the GET request.

Option A) Hidden tags - This option is incorrect because hidden tags are HTML elements used to store data on the client-side, not part of the GET request sent to the server.

Option C) Header - This option is incorrect because while the server logs the headers of the request, the query string is a separate part of the GET request and is not considered a header.

Option D) Cookies - This option is incorrect because cookies are also separate from the GET request and are stored on the client-side. The server may log information about cookies, but it is not specifically part of the GET request.

Therefore, the correct answer is B) Query Strings.