Lists Home |
Date Index |
On Mon, Apr 22, 2002 at 02:29:46PM +0100, Francis Norton wrote:
> But secondly, the the
> parameters for my transaction are in fact for a database query, which
> HTTP 1.1 appears to say  is an incorrect use of POST.
Yes, but as long as the result of the query isn't in the response to
that POST, then POST is fine.
HTTP 201 Created
(which tells the client that a new resource was created as a result of
the POST, and the Location header identifies that new resource)
and the response to that GET includes the query results.
In other words, this is a deferred response, where the use of POST is
appropriate because a resource is created that identifies the query
results, and that is a side effect. The response to the query is
still returned over GET.
Mark Baker, Chief Science Officer, Planetfred, Inc.
Ottawa, Ontario, CANADA. email@example.com