Getting Started
Guides
APIs
MCP Servers
Sign up
Log in
Search
K
Log in
Sign up
Docs
httpbin.org
Copy page
More actions
View as Markdown
View page as Markdown
Open in ChatGPT
Ask questions about this page
Open in Claude
Ask questions about this page
Copy MCP server
Copy MCP server URL
Connect to Cursor
Install MCP Server on Cursor
Connect to VS Code
Install MCP Server on VS Code
Download spec
JSON
Download spec as JSON
YAML
Download spec as YAML
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!
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
Anything
Returns anything that is passed to request