# HTTP Method Override

In some cases it happens that the GET URL can become very long (especially when filtering by IDs). Above a certain length this leads to errors for many web servers, because the HTTP standard does not specify the URL length.

To prevent such errors we provide a non-standard way to send any request via POST method and without any URL parameter. You need to specify the HTTP Header X-HTTP-Method-Override with the original HTTP method and send the following body:

{
  "query": "param_a=some_value&param_b=another_value",
  "payload": "{\"id\": \"someId\"}"
}

The query parameter contains the whole URL path beginning after the ? of the query part and the payload parameter contains the JSON string of the original body or null.

Please make sure your custom CORS config allows the X-HTTP-Method-Override header if you need this feature in a cross origin context.

Request missing documentation