Query using the POST method

A limitation may exist for the maximum length of the URLs accepted by servers. If this length is exceeded, a 414 status is returned indicating Request-URI Too Long. It is more common for an intermediary to exhibit this type of limitation. When a client receives this status in a response, it is very probably caused by a long query expression. The client should re-try the request with the following changes:

  • Change the HTTP method from GET to POST

  • Set the Content-Type header toapplication/x-www-form-urlencoded

  • Remove the query query parameter from the URL and set the body of the request to the query query parameter. For example, the message body could be as follows: query=severity='critical'.

  • Re-send the request