Getting Started
Guides
APIs
Sign up
Log in
Search
K
Log in
Sign up
Docs
HTTPBin
302/3XX Redirects to the given URL.
post
https://httpbin.org
/redirect-to
Body
application/x-www-form-urlencoded
status_code
integer
url
string
required
Response
302
A redirection.
post
/redirect-to
Try It!
Path Parameters
Query Parameters
Headers
Body
Show only required parameters
{ "url": "url" }
Shell
302
302/3XX Redirects to the given URL.
put
https://httpbin.org
/redirect-to
Body
application/x-www-form-urlencoded
status_code
integer
url
string
required
Response
302
A redirection.
put
/redirect-to
Try It!
Path Parameters
Query Parameters
Headers
Body
Show only required parameters
{ "url": "url" }
Shell
302
302/3XX Redirects to the given URL.
trace
https://httpbin.org
/redirect-to
Response
302
A redirection.
trace
/redirect-to
Try It!
Path Parameters
Query Parameters
Headers
Body
Shell
302
302 Redirects n times.
get
https://httpbin.org
/redirect/{n}
Path Parameters
n
integer
required
Response
302
A redirection.
get
/redirect/{n}
Try It!
Path Parameters
*
n
Query Parameters
Headers
Body
Shell
302
Relatively 302 Redirects n times.
get
https://httpbin.org
/relative-redirect/{n}
Path Parameters
n
integer
required
Response
302
A redirection.
get
/relative-redirect/{n}
Try It!
Path Parameters
*
n
Query Parameters
Headers
Body
Shell
302