Download OpenAPI specification:Download
This is a presser web app for HTTP testing in R packages. It implements the https://httpbin.org API
An endpoint to make a GET request agains. It returns the request's parameters and the request headers, in JSON.
Success.
{- "args": { },
- "headers": { },
- "origin": "string",
- "path": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
Basic authentication with specified user and password
user required | string User name. |
password required | string Password. |
Authorization | string Base64 encoded user name and password. See https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side for the protocol. |
Success.
Failed authentication.
{- "authenticated": true,
- "user": "Aladdin"
}
Checks is that a token is supplied in the Authorization
header.
Authorization | string ^Bearer |
Success.
Failed authentication.
{- "authenticated": true,
- "token": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Informational responses.
Success.
Redirection.
Client errors.
Server errors.
Assumes the specified etag
parameter as the ETag
header.
If-None-Match
header, then
it returns with HTTP status code 304.If-Match
header is supplied, then it return with
HTTP status code 412.See https://en.wikipedia.org/wiki/HTTP_ETag for more about ETag
headers.
etag required | string Assumed ETag value. |
Non-matching If-Non-Match
or matching If-Match
, or no
such headers at all.
Matching If-Non-Match
header.
Non-matchinf If-Match
header.
{- "args": { },
- "headers": { },
- "origin": "string",
- "path": "string",
- "url": "string"
}
Wait for the specified number of seconds before sending the response.
secs required | number Number of seconds, fractions are supported. |
JSON response.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
Drip the specified number of bytes over the specified number of seconds, potentially after some initial delay.
duration | number Default: 2 Number of seconds for the whole response. |
numbytes | integer Default: 10 Number of bytes to return. |
code | integer Default: 200 HTTP status code to return with. |
delay | number Default: 0 Initial delay, in seconds. Zero means no delay. |
Data of the specified length. The status code is not neccesarily
200, but the one specified in the code
query parameter.
It selects the format according to the Accept
request header.
Supported formats: image/jpeg
, image/png
, image/svg+xml
,
image/webp
, image/*
.
Accept | string Accepted image content type. |
Image file.
The client did not request a supported media type.
{- "message": "Client did not request a supported media type.",
- "accept": [
- "image/jpeg",
- "image/png",
- "image/svg+xml",
- "image/webp"
]
}
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
Multiple Choices.
Moved Permanently.
Found (Previously "Moved temporarily")
See Other (since HTTP/1.1)
Not Modified (RFC 7232)
Use Proxy (since HTTP/1.1)
Switch Proxy
Temporary Redirect (since HTTP/1.1)
Permanent Redirect (RFC 7538)
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
Multiple Choices.
Moved Permanently.
Found (Previously "Moved temporarily")
See Other (since HTTP/1.1)
Not Modified (RFC 7232)
Use Proxy (since HTTP/1.1)
Switch Proxy
Temporary Redirect (since HTTP/1.1)
Permanent Redirect (RFC 7538)
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
Multiple Choices.
Moved Permanently.
Found (Previously "Moved temporarily")
See Other (since HTTP/1.1)
Not Modified (RFC 7232)
Use Proxy (since HTTP/1.1)
Switch Proxy
Temporary Redirect (since HTTP/1.1)
Permanent Redirect (RFC 7538)
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
Multiple Choices.
Moved Permanently.
Found (Previously "Moved temporarily")
See Other (since HTTP/1.1)
Not Modified (RFC 7232)
Use Proxy (since HTTP/1.1)
Switch Proxy
Temporary Redirect (since HTTP/1.1)
Permanent Redirect (RFC 7538)
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
Multiple Choices.
Moved Permanently.
Found (Previously "Moved temporarily")
See Other (since HTTP/1.1)
Not Modified (RFC 7232)
Use Proxy (since HTTP/1.1)
Switch Proxy
Temporary Redirect (since HTTP/1.1)
Permanent Redirect (RFC 7538)
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
The request data.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
The request data.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
The request data.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
The request data.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
The request data.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}