350-201 Question 267
Single answerA security analyst is reviewing the HTTP response from a suspicious web server. The response includes the following details:
- Status code: 302
- Headers: 'Location: https://malicious-site.com', 'Content-Type: text/html'
- Body: 'Redirecting...'
Based on this information, what can the analyst infer about the response?
- A
The response indicates a successful file download.
- B
The response is redirecting the client to a different URL.
- C
The response is an error indicating the resource was not found.
- D
The response indicates the server is temporarily unavailable.
Show answer and explanation
Correct answer: B
Explanation
An HTTP response with a 302 status code and a 'Location' header indicates a temporary redirect, instructing the client to access the resource at a different URL. The presence of the 'Location' header with a URL like 'https://malicious-site.com' suggests that the server is redirecting the client to this potentially harmful site.
- A. Incorrect.
This is incorrect because a successful file download would typically be indicated by a status code of 200 and include the file content in the response body.
- B. Correct.
This is correct because the 302 status code indicates a temporary redirect, and the 'Location' header specifies the URL to which the client is being redirected.
- C. Incorrect.
This is incorrect because a 404 status code (not 302) is used to indicate that a resource was not found.
- D. Incorrect.
This is incorrect because a 503 status code (not 302) indicates that the server is temporarily unavailable.