HTTPBin

Redirects

Returns different redirect responses

Absolutely 302 Redirects n times.

get
https://httpbin.org/absolute-redirect/{n}

Path Parameters

nintegerrequired

Response

302

A redirection.

get/absolute-redirect/{n}
 
302

302/3XX Redirects to the given URL.

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

Response

302

A redirection.

delete/redirect-to
 
302

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