HTTPQUERY
Deutsch

305 Use Proxy

Verwendung

Der Statuscode 305 Use Proxy weist den Client an, die angeforderte Ressource über einen Proxy zu beziehen. Die Adresse des Proxys wird im Location-Header angegeben.

Veraltet

Der Statuscode 305 Use Proxy wurde aus Sicherheitsgründen für veraltet erklärt. Die meisten HTTP-Clients reagieren nicht auf diesen Statuscode.

Beispiel

Der Client fordert eine bestimmte Ressource an, und der Server antwortet mit 305 Use Proxy, um anzuzeigen, wohin der Client eine identische Anfrage senden soll.

Anfrage

GET /document.pdf HTTP/1.1
Host: example.com

Antwort

HTTP/1.1 305 Use Proxy
Location: https://proxy.example.re:8080

Code-Referenzen

.NET

HttpStatusCode.UseProxy

Rust

http::StatusCode::USE_PROXY

Rails

:use_proxy

Go

http.StatusUseProxy

Symfony

Response::HTTP_USE_PROXY

Python3.5+

http.HTTPStatus.USE_PROXY

Java

java.net.HttpURLConnection.HTTP_USE_PROXY

Apache HttpComponents Core

org.apache.hc.core5.http.HttpStatus.SC_USE_PROXY

Angular

@angular/common/http/HttpStatusCode.UseProxy