HTTPBin

302/3XX Redirects to the given URL.

get
https://httpbin.org/redirect-to

Query Parameters

urlstringrequired
status_codeinteger

Response

302

A redirection.

get/redirect-to
 
302

302/3XX Redirects to the given URL.

patch
https://httpbin.org/redirect-to

Response

302

A redirection.

patch/redirect-to
 
302

302/3XX Redirects to the given URL.

post
https://httpbin.org/redirect-to

Body

application/x-www-form-urlencoded
status_codeinteger
urlstringrequired

Response

302

A redirection.

post/redirect-to

Body

{ "url": "url" }
 
302

302/3XX Redirects to the given URL.

put
https://httpbin.org/redirect-to

Body

application/x-www-form-urlencoded
status_codeinteger
urlstringrequired

Response

302

A redirection.

put/redirect-to

Body

{ "url": "url" }
 
302

302/3XX Redirects to the given URL.

trace
https://httpbin.org/redirect-to

Response

302

A redirection.

trace/redirect-to
 
302