Files
api-guidelines/execution/query-requests-with-large-inputs.md
apidesigner 143255a88f Updates execution/query-requests-with-large-inputs.md
Auto commit by GitBook Editor
2017-06-19 08:48:20 +00:00

713 B

Query Requests with Large Inputs

While HTTP doesn't impose any limit on the length of an URI some implementation of server or client might have difficulties handling long URIs (usually URIs with many or large query parameters).

Every endpoint with such an URI MUST use the HTTP POST Request Method and send the query string in HTTP Request Message body using the application/x-www-form-urlencoded media type.

Example

POST /orders HTTP/1.1
Content-Type: application/x-www-form-urlencoded

search=attributes&color=white&size=56&...

NOTE: Since this operation is safe and idempotent, using the POST method violates the HTTP Protocol semantics and results in loss of cache-ability.