### GET /user-agent Source: https://httpbingo.org/ Returns user-agent. ```APIDOC ## [GET] /user-agent ### Description Returns user-agent. ### Method GET ### Endpoint /user-agent ``` -------------------------------- ### GET /html Source: https://httpbingo.org/ Renders an HTML Page. ```APIDOC ## [GET] /html ### Description Renders an HTML Page. ### Method GET ### Endpoint /html ``` -------------------------------- ### GET /xml Source: https://httpbingo.org/ Returns some XML. ```APIDOC ## [GET] /xml ### Description Returns some XML. ### Method GET ### Endpoint /xml ``` -------------------------------- ### GET /get Source: https://httpbingo.org/ Returns GET data. ```APIDOC ## [GET] /get ### Description Returns GET data. ### Method GET ### Endpoint /get ``` -------------------------------- ### GET / Source: https://httpbingo.org/ Returns the documentation page for the go-httpbin service. ```APIDOC ## [GET] / ### Description Returns the documentation page for the go-httpbin service. ### Method GET ### Endpoint / ``` -------------------------------- ### GET /json Source: https://httpbingo.org/ Returns JSON. ```APIDOC ## [GET] /json ### Description Returns JSON. ### Method GET ### Endpoint /json ``` -------------------------------- ### GET /robots.txt Source: https://httpbingo.org/ Returns some robots.txt rules. ```APIDOC ## [GET] /robots.txt ### Description Returns some robots.txt rules. ### Method GET ### Endpoint /robots.txt ``` -------------------------------- ### GET /image/webp Source: https://httpbingo.org/ Returns a WEBP image. ```APIDOC ## [GET] /image/webp ### Description Returns a WEBP image. ### Method GET ### Endpoint /image/webp ``` -------------------------------- ### GET /image/avif Source: https://httpbingo.org/ Returns an AVIF image. ```APIDOC ## [GET] /image/avif ### Description Returns an AVIF image. ### Method GET ### Endpoint /image/avif ``` -------------------------------- ### GET /image/png Source: https://httpbingo.org/ Returns a PNG image. ```APIDOC ## [GET] /image/png ### Description Returns a PNG image. ### Method GET ### Endpoint /image/png ``` -------------------------------- ### GET /deny Source: https://httpbingo.org/ Denied by robots.txt file. ```APIDOC ## [GET] /deny ### Description Denied by robots.txt file. ### Method GET ### Endpoint /deny ``` -------------------------------- ### GET /forms/post Source: https://httpbingo.org/ HTML form that submits to /post. ```APIDOC ## [GET] /forms/post ### Description HTML form that submits to /post. ### Method GET ### Endpoint /forms/post ``` -------------------------------- ### GET /anything/:anything Source: https://httpbingo.org/ Returns anything that is passed to the request. ```APIDOC ## [GET] /anything/:anything ### Description Returns anything that is passed to the request. ### Method GET ### Endpoint /anything/:anything ### Parameters #### Path Parameters - **anything** (string) - Required - Arbitrary path parameter. ``` -------------------------------- ### GET /env Source: https://httpbingo.org/ Returns all environment variables named with HTTPBIN_ENV_ prefix. ```APIDOC ## [GET] /env ### Description Returns all environment variables named with HTTPBIN_ENV_ prefix. ### Method GET ### Endpoint /env ``` -------------------------------- ### GET /ip Source: https://httpbingo.org/ Returns Origin IP. ```APIDOC ## [GET] /ip ### Description Returns Origin IP. ### Method GET ### Endpoint /ip ``` -------------------------------- ### GET /redirect-to?url=foo Source: https://httpbingo.org/ 302 Redirects to the foo URL. ```APIDOC ## [GET] /redirect-to?url=foo ### Description 302 Redirects to the foo URL. ### Method GET ### Endpoint /redirect-to?url=foo ### Parameters #### Query Parameters - **url** (string) - Required - Target URL. ``` -------------------------------- ### GET /redirect-to?url=foo&status_code=307 Source: https://httpbingo.org/ 307 Redirects to the foo URL. ```APIDOC ## [GET] /redirect-to?url=foo&status_code=307 ### Description 307 Redirects to the foo URL. ### Method GET ### Endpoint /redirect-to?url=foo&status_code=307 ### Parameters #### Query Parameters - **url** (string) - Required - Target URL. - **status_code** (integer) - Optional - HTTP status code (default 302). ``` -------------------------------- ### GET /gzip Source: https://httpbingo.org/ Returns gzip-encoded data. ```APIDOC ## [GET] /gzip ### Description Returns gzip-encoded data. ### Method GET ### Endpoint /gzip ``` -------------------------------- ### GET /basic-auth/:user/:password Source: https://httpbingo.org/ Challenges HTTPBasic Auth. ```APIDOC ## [GET] /basic-auth/:user/:password ### Description Challenges HTTPBasic Auth. ### Method GET ### Endpoint /basic-auth/:user/:password ### Parameters #### Path Parameters - **user** (string) - Required - Username for basic auth. - **password** (string) - Required - Password for basic auth. ``` -------------------------------- ### GET /image/svg Source: https://httpbingo.org/ Returns a SVG image. ```APIDOC ## [GET] /image/svg ### Description Returns a SVG image. ### Method GET ### Endpoint /image/svg ``` -------------------------------- ### GET /image/jpeg Source: https://httpbingo.org/ Returns a JPEG image. ```APIDOC ## [GET] /image/jpeg ### Description Returns a JPEG image. ### Method GET ### Endpoint /image/jpeg ``` -------------------------------- ### GET /links/:n Source: https://httpbingo.org/ Returns page containing n HTML links. ```APIDOC ## [GET] /links/:n ### Description Returns page containing n HTML links. ### Method GET ### Endpoint /links/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of links. ``` -------------------------------- ### GET /digest-auth/:qop/:user/:password Source: https://httpbingo.org/ Challenges HTTP Digest Auth using default MD5 algorithm. ```APIDOC ## [GET] /digest-auth/:qop/:user/:password ### Description Challenges HTTP Digest Auth using default MD5 algorithm. ### Method GET ### Endpoint /digest-auth/:qop/:user/:password ### Parameters #### Path Parameters - **qop** (string) - Required - Quality of protection. - **user** (string) - Required - Username. - **password** (string) - Required - Password. ``` -------------------------------- ### GET /hidden-basic-auth/:user/:password Source: https://httpbingo.org/ 404'd BasicAuth. ```APIDOC ## [GET] /hidden-basic-auth/:user/:password ### Description 404'd BasicAuth. ### Method GET ### Endpoint /hidden-basic-auth/:user/:password ### Parameters #### Path Parameters - **user** (string) - Required - Username. - **password** (string) - Required - Password. ``` -------------------------------- ### GET /response-headers?key=val Source: https://httpbingo.org/ Returns given response headers. ```APIDOC ## [GET] /response-headers?key=val ### Description Returns given response headers. ### Method GET ### Endpoint /response-headers?key=val ### Parameters #### Query Parameters - **key** (string) - Required - Header name and value. ``` -------------------------------- ### GET /redirect/:n Source: https://httpbingo.org/ 302 Redirects n times. ```APIDOC ## [GET] /redirect/:n ### Description 302 Redirects n times. ### Method GET ### Endpoint /redirect/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of redirects. ``` -------------------------------- ### GET /headers Source: https://httpbingo.org/ Returns request header dict. ```APIDOC ## [GET] /headers ### Description Returns request header dict. ### Method GET ### Endpoint /headers ``` -------------------------------- ### GET /deflate Source: https://httpbingo.org/ Returns deflate-encoded data. ```APIDOC ## [GET] /deflate ### Description Returns deflate-encoded data. ### Method GET ### Endpoint /deflate ``` -------------------------------- ### GET /cookies Source: https://httpbingo.org/ Returns cookie data. ```APIDOC ## [GET] /cookies ### Description Returns cookie data. ### Method GET ### Endpoint /cookies ``` -------------------------------- ### GET /sse?delay=1s&duration=5s&count=10 Source: https://httpbingo.org/ A stream of server-sent events. ```APIDOC ## [GET] /sse?delay=1s&duration=5s&count=10 ### Description A stream of server-sent events. ### Method GET ### Endpoint /sse?delay=1s&duration=5s&count=10 ### Parameters #### Query Parameters - **delay** (string) - Optional - Initial delay (e.g., 1s). - **duration** (string) - Optional - Duration (e.g., 5s). - **count** (integer) - Optional - Number of events. ``` -------------------------------- ### GET /stream/:n Source: https://httpbingo.org/ Streams min(n, 100) lines. ```APIDOC ## [GET] /stream/:n ### Description Streams min(n, 100) lines. ### Method GET ### Endpoint /stream/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of lines to stream (capped at 100). ``` -------------------------------- ### GET /websocket/echo?max_fragment_size=2048&max_message_size=10240 Source: https://httpbingo.org/ A WebSocket echo service. ```APIDOC ## [GET] /websocket/echo?max_fragment_size=2048&max_message_size=10240 ### Description A WebSocket echo service. ### Method GET ### Endpoint /websocket/echo?max_fragment_size=2048&max_message_size=10240 ### Parameters #### Query Parameters - **max_fragment_size** (integer) - Optional - Maximum fragment size. - **max_message_size** (integer) - Optional - Maximum message size. ``` -------------------------------- ### GET /get Source: https://httpbingo.org/ Returns the query parameters, headers, origin, and URL of the request. The response is JSON-encoded. ```APIDOC ## [GET] /get ### Description Returns the query parameters, headers, origin, and URL of the request. ### Method GET ### Endpoint /get ### Parameters #### Query Parameters - **foo** (string) - Optional - Example query parameter. ### Response #### Success Response (200) - **args** (object) - Query parameters. - **headers** (object) - Request headers. - **origin** (string) - Client IP address. - **url** (string) - Full request URL. #### Response Example ``` { "args": { "foo": [ "bar" ] }, "headers": { "Accept": [ "*/*" ], "Host": [ "httpbingo.org" ], "User-Agent": [ "curl/7.64.1" ] }, "origin": "73.238.9.52, 77.83.142.42", "url": "https://httpbingo.org/get?foo=bar" } ``` ``` -------------------------------- ### GET /trailers?key=val Source: https://httpbingo.org/ Returns JSON response with query params added as HTTP Trailers. ```APIDOC ## [GET] /trailers?key=val ### Description Returns JSON response with query params added as HTTP Trailers. ### Method GET ### Endpoint /trailers?key=val ### Parameters #### Query Parameters - **key** (string) - Required - Trailer name and value. ``` -------------------------------- ### GET /cache/:n Source: https://httpbingo.org/ Sets a Cache-Control header for n seconds. ```APIDOC ## [GET] /cache/:n ### Description Sets a Cache-Control header for n seconds. ### Method GET ### Endpoint /cache/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of seconds for Cache-Control. ``` -------------------------------- ### GET /uuid Source: https://httpbingo.org/ Generates a UUIDv4 value. ```APIDOC ## [GET] /uuid ### Description Generates a UUIDv4 value. ### Method GET ### Endpoint /uuid ``` -------------------------------- ### GET /relative-redirect/:n Source: https://httpbingo.org/ 302 Relative redirects n times. ```APIDOC ## [GET] /relative-redirect/:n ### Description 302 Relative redirects n times. ### Method GET ### Endpoint /relative-redirect/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of redirects. ``` -------------------------------- ### GET /digest-auth/:qop/:user/:password/:algorithm Source: https://httpbingo.org/ Challenges HTTP Digest Auth using specified algorithm (MD5 or SHA-256). ```APIDOC ## [GET] /digest-auth/:qop/:user/:password/:algorithm ### Description Challenges HTTP Digest Auth using specified algorithm (MD5 or SHA-256). ### Method GET ### Endpoint /digest-auth/:qop/:user/:password/:algorithm ### Parameters #### Path Parameters - **qop** (string) - Required - Quality of protection. - **user** (string) - Required - Username. - **password** (string) - Required - Password. - **algorithm** (string) - Required - Algorithm (MD5 or SHA-256). ``` -------------------------------- ### GET /delay/:n Source: https://httpbingo.org/ Delays responding for min(n, 10) seconds. ```APIDOC ## [GET] /delay/:n ### Description Delays responding for min(n, 10) seconds. ### Method GET ### Endpoint /delay/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Delay in seconds (capped at 10). ``` -------------------------------- ### GET /encoding/utf8 Source: https://httpbingo.org/ Returns page containing UTF-8 data. ```APIDOC ## [GET] /encoding/utf8 ### Description Returns page containing UTF-8 data. ### Method GET ### Endpoint /encoding/utf8 ``` -------------------------------- ### GET /hostname Source: https://httpbingo.org/ Returns the name of the host serving the request. ```APIDOC ## [GET] /hostname ### Description Returns the name of the host serving the request. ### Method GET ### Endpoint /hostname ``` -------------------------------- ### GET /absolute-redirect/:n Source: https://httpbingo.org/ Performs 302 absolute redirects n times. ```APIDOC ## [GET] /absolute-redirect/:n ### Description Performs 302 absolute redirects n times. ### Method GET ### Endpoint /absolute-redirect/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of redirects. ``` -------------------------------- ### GET /image Source: https://httpbingo.org/ Returns page containing an image based on sent Accept header. ```APIDOC ## [GET] /image ### Description Returns page containing an image based on sent Accept header. ### Method GET ### Endpoint /image ``` -------------------------------- ### GET /user-agent Source: https://httpbingo.org/ Returns the User-Agent header of the request. The response is JSON-encoded. ```APIDOC ## [GET] /user-agent ### Description Returns the User-Agent header of the request. ### Method GET ### Endpoint /user-agent ### Response #### Success Response (200) - **user-agent** (string) - The User-Agent header value. #### Response Example ``` {"user-agent":"curl/7.64.1"} ``` ``` -------------------------------- ### GET /status/:code Source: https://httpbingo.org/ Returns given HTTP Status code. ```APIDOC ## [GET] /status/:code ### Description Returns given HTTP Status code. ### Method GET ### Endpoint /status/:code ### Parameters #### Path Parameters - **code** (integer) - Required - HTTP status code. ``` -------------------------------- ### GET /unstable Source: https://httpbingo.org/ Fails half the time, accepts optional failure_rate float and seed integer parameters. ```APIDOC ## [GET] /unstable ### Description Fails half the time, accepts optional failure_rate float and seed integer parameters. ### Method GET ### Endpoint /unstable ### Parameters #### Query Parameters - **failure_rate** (number) - Optional - Failure rate (float). - **seed** (integer) - Optional - Seed for random number generator. ``` -------------------------------- ### GET /base64/encode/:value Source: https://httpbingo.org/ Encodes a string into URL-safe Base64. ```APIDOC ## [GET] /base64/encode/:value ### Description Encodes a string into URL-safe Base64. ### Method GET ### Endpoint /base64/encode/:value ### Parameters #### Path Parameters - **value** (string) - Required - String to encode. ``` -------------------------------- ### GET /cookies/delete?name Source: https://httpbingo.org/ Deletes one or more simple cookies. ```APIDOC ## [GET] /cookies/delete?name ### Description Deletes one or more simple cookies. ### Method GET ### Endpoint /cookies/delete?name ### Parameters #### Query Parameters - **name** (string) - Required - Name of the cookie to delete. ``` -------------------------------- ### GET /dump/request Source: https://httpbingo.org/ Returns the given request in its HTTP/1.x wire approximate representation. ```APIDOC ## [GET] /dump/request ### Description Returns the given request in its HTTP/1.x wire approximate representation. ### Method GET ### Endpoint /dump/request ``` -------------------------------- ### GET /drip?numbytes=n&duration=s&delay=s&code=code Source: https://httpbingo.org/ Drips data over the given duration after an optional initial delay, simulating a slow HTTP server. ```APIDOC ## [GET] /drip?numbytes=n&duration=s&delay=s&code=code ### Description Drips data over the given duration after an optional initial delay, simulating a slow HTTP server. ### Method GET ### Endpoint /drip?numbytes=n&duration=s&delay=s&code=code ### Parameters #### Query Parameters - **numbytes** (integer) - Required - Number of bytes to drip. - **duration** (number) - Required - Duration in seconds. - **delay** (number) - Optional - Initial delay in seconds. - **code** (integer) - Optional - HTTP status code. ``` -------------------------------- ### GET /ip Source: https://httpbingo.org/ Returns the client's IP address. The response is JSON-encoded. ```APIDOC ## [GET] /ip ### Description Returns the client's IP address. ### Method GET ### Endpoint /ip ### Response #### Success Response (200) - **origin** (string) - The client's IP address. #### Response Example ``` {"origin":"73.238.9.52, 77.83.142.42"} ``` ``` -------------------------------- ### GET /dump/request Source: https://httpbingo.org/ Returns the raw HTTP request as sent to the server. The response is the raw request text. ```APIDOC ## [GET] /dump/request ### Description Returns the raw HTTP request as sent to the server. ### Method GET ### Endpoint /dump/request ### Parameters #### Query Parameters - **foo** (string) - Optional - Example query parameter. ### Response #### Success Response (200) - Raw HTTP request text. #### Response Example ``` GET /dump/request?foo=bar HTTP/1.1 Host: httpbingo.org Accept: */* User-Agent: curl/7.64.1 ``` ``` -------------------------------- ### GET /cache Source: https://httpbingo.org/ Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304. ```APIDOC ## [GET] /cache ### Description Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304. ### Method GET ### Endpoint /cache ``` -------------------------------- ### GET /cookies/set?name=value&attr[Name]=value Source: https://httpbingo.org/ Sets one or more simple cookies with optional attribute overrides. ```APIDOC ## [GET] /cookies/set?name=value&attr[Name]=value ### Description Sets one or more simple cookies with optional attribute overrides. ### Method GET ### Endpoint /cookies/set?name=value&attr[Name]=value ### Parameters #### Query Parameters - **name** (string) - Required - Cookie name and value. - **attr[Name]** (string) - Optional - Attribute override, e.g., attr[SameSite]=lax. ``` -------------------------------- ### GET /bearer Source: https://httpbingo.org/ Checks Bearer token header - returns 401 if not set. ```APIDOC ## [GET] /bearer ### Description Checks Bearer token header - returns 401 if not set. ### Method GET ### Endpoint /bearer ``` -------------------------------- ### GET /base64/:value?content-type=ct Source: https://httpbingo.org/ Decodes a Base64-encoded string, with optional Content-Type. ```APIDOC ## [GET] /base64/:value?content-type=ct ### Description Decodes a Base64-encoded string, with optional Content-Type. ### Method GET ### Endpoint /base64/:value?content-type=ct ### Parameters #### Path Parameters - **value** (string) - Required - Base64-encoded string to decode. #### Query Parameters - **content-type** (string) - Optional - Content-Type of the decoded response. ``` -------------------------------- ### GET /etag/:etag Source: https://httpbingo.org/ Assumes the resource has the given etag and responds to If-None-Match header with a 200 or 304 and If-Match with a 200 or 412 as appropriate. ```APIDOC ## [GET] /etag/:etag ### Description Assumes the resource has the given etag and responds to If-None-Match header with a 200 or 304 and If-Match with a 200 or 412 as appropriate. ### Method GET ### Endpoint /etag/:etag ### Parameters #### Path Parameters - **etag** (string) - Required - ETag value. ``` -------------------------------- ### GET /bytes/:n Source: https://httpbingo.org/ Generates n random bytes of binary data, accepts optional seed integer parameter. ```APIDOC ## [GET] /bytes/:n ### Description Generates n random bytes of binary data, accepts optional seed integer parameter. ### Method GET ### Endpoint /bytes/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of bytes to generate. #### Query Parameters - **seed** (integer) - Optional - Seed for random number generator. ``` -------------------------------- ### GET /base64/decode/:value?content-type=ct Source: https://httpbingo.org/ Explicit URL for decoding a Base64 encoded string. ```APIDOC ## [GET] /base64/decode/:value?content-type=ct ### Description Explicit URL for decoding a Base64 encoded string. ### Method GET ### Endpoint /base64/decode/:value?content-type=ct ### Parameters #### Path Parameters - **value** (string) - Required - Base64-encoded string to decode. #### Query Parameters - **content-type** (string) - Optional - Content-Type of the decoded response. ``` -------------------------------- ### HEAD /status/418 Source: https://httpbingo.org/ Returns a response with the specified HTTP status code. The example shows status 418 (I'm a teapot). ```APIDOC ## [HEAD] /status/418 ### Description Returns a response with the specified HTTP status code. The example shows status 418 (I'm a teapot). ### Method HEAD ### Endpoint /status/418 ### Response #### Success Response (418) - **Access-Control-Allow-Credentials** (string) - CORS header. - **Access-Control-Allow-Origin** (string) - CORS header. - **X-More-Info** (string) - Additional information. - **Date** (string) - Response date. - **Content-Length** (string) - Response content length. #### Response Example ``` HTTP/1.1 418 I'm a teapot Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * X-More-Info: http://tools.ietf.org/html/rfc2324 Date: Tue, 13 Jul 2021 13:12:37 GMT Content-Length: 0 ``` ``` -------------------------------- ### GET /stream-bytes/:n Source: https://httpbingo.org/ Streams n random bytes of binary data, accepts optional seed and chunk_size integer parameters. ```APIDOC ## [GET] /stream-bytes/:n ### Description Streams n random bytes of binary data, accepts optional seed and chunk_size integer parameters. ### Method GET ### Endpoint /stream-bytes/:n ### Parameters #### Path Parameters - **n** (integer) - Required - Number of bytes to stream. #### Query Parameters - **seed** (integer) - Optional - Seed for random number generator. - **chunk_size** (integer) - Optional - Chunk size. ``` -------------------------------- ### GET /range/1024?duration=s&chunk_size=code Source: https://httpbingo.org/ Streams n bytes, and allows specifying a Range header to select a subset of the data. Accepts a chunk_size and request duration parameter. ```APIDOC ## [GET] /range/1024?duration=s&chunk_size=code ### Description Streams n bytes, and allows specifying a Range header to select a subset of the data. Accepts a chunk_size and request duration parameter. ### Method GET ### Endpoint /range/1024?duration=s&chunk_size=code ### Parameters #### Query Parameters - **duration** (string) - Optional - Duration (e.g., s). - **chunk_size** (integer) - Optional - Chunk size. ``` -------------------------------- ### GET /jsonl?count=10&duration=5s&delay=1s&jitter=0.5 Source: https://httpbingo.org/ Streams count lines of JSON Lines data over an optional duration after an optional initial delay, with optional jitter ratio (0.0-1.0) to randomize timing between lines. ```APIDOC ## [GET] /jsonl?count=10&duration=5s&delay=1s&jitter=0.5 ### Description Streams count lines of JSON Lines data over an optional duration after an optional initial delay, with optional jitter ratio (0.0-1.0) to randomize timing between lines. ### Method GET ### Endpoint /jsonl?count=10&duration=5s&delay=1s&jitter=0.5 ### Parameters #### Query Parameters - **count** (integer) - Optional - Number of lines to stream. - **duration** (string) - Optional - Duration (e.g., 5s). - **delay** (string) - Optional - Initial delay (e.g., 1s). - **jitter** (number) - Optional - Jitter ratio (0.0-1.0). ``` -------------------------------- ### curl https://httpbingo.org/get?foo=bar Source: https://httpbingo.org/ Returns query parameters, headers, origin, and URL as JSON. The 'args' object shows the query parameter 'foo' with value 'bar'. ```bash curl https://httpbingo.org/get?foo=bar ``` ```json { "args": { "foo": [ "bar" ] }, "headers": { "Accept": [ "*/*" ], "Host": [ "httpbingo.org" ], "User-Agent": [ "curl/7.64.1" ] }, "origin": "73.238.9.52, 77.83.142.42", "url": "https://httpbingo.org/get?foo=bar" } ``` -------------------------------- ### POST /post Source: https://httpbingo.org/ Returns request data. Allows only POST requests. ```APIDOC ## [POST] /post ### Description Returns request data. Allows only POST requests. ### Method POST ### Endpoint /post ``` -------------------------------- ### POST /upload Source: https://httpbingo.org/ Discards the body of POST/PUT/PATCH requests, for testing upload performance. ```APIDOC ## [POST] /upload ### Description Discards the body of POST/PUT/PATCH requests, for testing upload performance. ### Method POST ### Endpoint /upload ``` -------------------------------- ### HEAD /head Source: https://httpbingo.org/ Returns response headers. Allows only HEAD requests. ```APIDOC ## [HEAD] /head ### Description Returns response headers. Allows only HEAD requests. ### Method HEAD ### Endpoint /head ``` -------------------------------- ### curl https://httpbingo.org/dump/request?foo=bar Source: https://httpbingo.org/ Dumps the raw HTTP request line and headers sent to the server. ```bash curl https://httpbingo.org/dump/request?foo=bar ``` ```http GET /dump/request?foo=bar HTTP/1.1 Host: httpbingo.org Accept: */* User-Agent: curl/7.64.1 ``` -------------------------------- ### curl https://httpbingo.org/user-agent Source: https://httpbingo.org/ Returns the User-Agent header sent by the client as a JSON object. ```bash curl https://httpbingo.org/user-agent ``` ```json {"user-agent":"curl/7.64.1"} ``` -------------------------------- ### curl https://httpbingo.org/ip Source: https://httpbingo.org/ Returns the client's IP address as a JSON object with an 'origin' key. ```bash curl https://httpbingo.org/ip ``` ```json {"origin":"73.238.9.52, 77.83.142.42"} ``` -------------------------------- ### DELETE /delete Source: https://httpbingo.org/ Returns request data. Allows only DELETE requests. ```APIDOC ## [DELETE] /delete ### Description Returns request data. Allows only DELETE requests. ### Method DELETE ### Endpoint /delete ``` -------------------------------- ### PATCH /patch Source: https://httpbingo.org/ Returns request data. Allows only PATCH requests. ```APIDOC ## [PATCH] /patch ### Description Returns request data. Allows only PATCH requests. ### Method PATCH ### Endpoint /patch ``` -------------------------------- ### curl -I https://httpbingo.org/status/418 Source: https://httpbingo.org/ Sends a HEAD request to the /status/418 endpoint, returning the HTTP status line and response headers. The status is 418 I'm a teapot. ```bash curl -I https://httpbingo.org/status/418 ``` ```http HTTP/1.1 418 I'm a teapot Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * X-More-Info: http://tools.ietf.org/html/rfc2324 Date: Tue, 13 Jul 2021 13:12:37 GMT Content-Length: 0 ``` -------------------------------- ### PUT /put Source: https://httpbingo.org/ Returns request data. Allows only PUT requests. ```APIDOC ## [PUT] /put ### Description Returns request data. Allows only PUT requests. ### Method PUT ### Endpoint /put ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.