Yes! That's exactly what I needed to do. I need an async mode without the GET 255 bytes limitation. Should I file a JIRA for it ?
Also, there are no POST for both: QueryStatusAPIServlet, QueryResultAPIServlet which require switching the request mode between the query submission and the result retrieval. I think It would be nice to unify the usage. On Tue, Sep 29, 2015 at 10:01 PM, Chris Hillery <[email protected]> wrote: > On Tue, Sep 29, 2015 at 10:01 AM, Wail Alkowaileet <[email protected]> > wrote: > > > 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... > > Ceej > aka Chris Hillery > -- *Regards,* Wail Alkowaileet
