Implement POST for HTTP API for queries.