asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hillery <>
Subject Re: AsterixDB API POST vs. GET request
Date Tue, 29 Sep 2015 19:01:56 GMT
On Tue, Sep 29, 2015 at 10:01 AM, Wail Alkowaileet <>

> POST doesn't accept parameterized requests (i.e http://host:port
> /query?query=AQL&mode=asynchronous)
It takes the whole request URI and encode it as a query which can lead to
> errors.

It does assume the entire request body (not URI) is the query. This isn't
necessarily wrong, but it does mean that if you need to send any non-query
parameters such as mode=asynchronous or output=csv, you need to send them
as part of the URL and not in the request body.

Probably it should at least handle the case where the request's
content-type is listed as "application/x-www-form-urlencoded" and treat
that as key-value parameters...

aka Chris Hillery

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message