Phoenix Query Server - proper POST body format

2016-04-04 Thread Jared Katz
I'm guessing this will be a pretty easy question for someone to answer... I've had success making POST requests to the Query Server by putting the payload in the request header, like so: Key: "request" Value: "{"request": "prepareAndExecute", "sql": "SELECT* FROM

Re: Phoenix Query Server - proper POST body format

2016-04-06 Thread Josh Elser
Hi Jared, This is just a bad error message on PQS' part. Sorry about that. IIRC, it was something obtuse like not finding the server-endpoint for the JSON message you sent. If you want to do a POST and use the body, you can just put the bytes for your JSON blob in there and that should be su

RE: Phoenix Query Server - proper POST body format

2016-04-07 Thread Jared Katz
Thanks Josh. Got it working. -Original Message- From: Josh Elser [mailto:josh.el...@gmail.com] Sent: Wednesday, April 6, 2016 6:10 PM To: user@phoenix.apache.org Subject: Re: Phoenix Query Server - proper POST body format Hi Jared, This is just a bad error message on PQS' part.