Reference Guide¶
/ip¶
Returns Origin IP
curl "httpconsole.com/ip"
Response:
HTTP/1.1 200 OK
Date: Wed, 02 Apr 2014 18:39:48 GMT
Transfer-Encoding: chunked
Content-Type: text/plain
159.33.10.155
/agent¶
Returns user-agent.
curl -H "User-Agent: Agent Awesome" "httpconsole.com/agent"
Response:
HTTP/1.1 200 OK
Date: Wed, 02 Apr 2014 18:39:48 GMT
Transfer-Encoding: chunked
Content-Type: text/plain
Agent Awesome
/headers¶
Returns the request headers
curl -H "User-Agent: Agent Awesome" "httpconsole.com/headers"
Response:
HTTP/1.1 200 OK
Date: Wed, 02 Apr 2014 18:39:48 GMT
Transfer-Encoding: chunked
Content-Type: text/plain
Host: httpconsole.com
Accept: */*
User-Agent: Awesome Browser
/status¶
Returns given HTTP Status code.
Parameters:
/status/:code/:reason
Key | Format | Default | Description |
---|---|---|---|
:code | [0-9]+ | 200 | HTTP Status Code |
:reason | [a-zA-Z0-9 %_-]+ | OK | HTTP Status Reason |
curl "httpconsole.com/status/505/Hello World"
Response:
HTTP/1.1 505 Hello World
Date: Wed, 02 Apr 2014 18:39:48 GMT
Transfer-Encoding: chunked
Content-Type: text/plain
Hello World
/delay¶
Delays responding for n seconds.
Parameters:
/delay/:seconds
Key | Format | Default | Description |
---|---|---|---|
:seconds | [0-9]+ | 1 | number of seconds to wait before sending a response |
curl "httpconsole.com/status/505/Hello World"
Response:
HTTP/1.1 505 Hello World
Date: Wed, 02 Apr 2014 18:39:48 GMT
Transfer-Encoding: chunked
Content-Type: text/plain
Hello World
/redirect¶
Redirects n times.
Parameters:
/redirect/:code/:count
Key | Format | Default | Description |
---|---|---|---|
:code | 301|302|303|307 | 302 | HTTP Status Code |
:count | [0-9]+ | 1 | number of times to redirect |
curl "httpconsole.com/redirect/302/5"
Response:
HTTP/1.1 302 Found
Date: Wed, 02 Apr 2014 18:39:48 GMT
Transfer-Encoding: chunked
Content-Type: text/plain
Location: http://httpconsole.com/redirect/302/4