API Testing : HTTP Status Code : 305 Use Proxy SDET Automation Testing Interview Questions & Answers

Опубликовано: 08 Апрель 2023
на канале: SDET Automation Testing Interview Pro
186
7

API Testing : HTTP Status Code : 305 Use Proxy

SDET Automation Testing Interview Questions & Answers

We will be covering a wide range of topics including QA manual testing, automation testing, Selenium, Java, Jenkins, Cucumber, Maven, and various testing frameworks.

API Testing : HTTP Status Code : 305 Use Proxy

HTTP status code 305, "Use Proxy," is a response status code that is no longer used in HTTP/1.1 and has been deprecated.

This status code was originally intended to inform the client that it needs to use a proxy server to access the requested resource, and the server includes the URL of the proxy server in the response headers.

The client is expected to resubmit the request to the proxy server instead of sending the request directly to the server hosting the requested resource.

However, this status code has been removed from the HTTP/1.1 specification due to security concerns and the widespread use of firewalls that may interfere with proxy usage.

Instead, the use of a proxy server is now determined by the client's configuration settings, and servers should not return a 305 status code in response to a request.

If a server receives a request that requires a proxy server to access the requested resource, it can return a 407 status code instead, which indicates that the client must provide authentication credentials to access the proxy server.