The HTTP QUERY Method

published on 2023/05/28
Web

This specification defines a new HTTP method, QUERY, as a safe, idempotent request method that can carry request content.

The QUERY method is used to initiate a server-side query. Unlike the HTTP GET method, which requests that a server return a representation of the resource identified by the target URI (as defined by Section 7.1 of [HTTP]), the QUERY method is used to ask the server to perform a query operation (described by the request content) over some set of data scoped to the effective request URI. The content returned in response to a QUERY cannot be assumed to be a representation of the resource identified by the effective request URI.

httpwg.org