Post request
Can you do a POST if you do a curl command, to the same collection?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Can you do a POST if you do a curl command, to the same collection?
Thank you and thank you for giving such a prompt reply, Max.
The fact is I don't do cURL reuqest, but if I change the type: to "GET", instead of "POST", it says success!
Can you setup the same POST request inside Tiggzi (service) and let me know if that works?
It works inside Tiggzi UI; in fact I'm checking to see if anything can be learnt from the exported files. Again, my appreciation to your support.
On a very different note, I also would like to express some of my personal views on the new editor, which I've just found time to try out.
I don't think it is as good as the old one (the flash one). Of course, I've just invested not more than 2 hours, and it would be easy for me to say so.
But, if my guts feeling is right, we should not let it do more harm no matter how much have been invested in the new editor. It's painful to do so but damn right. Sorry to say so.
When you send a request, use Chrome Dev. Tool (or Firebug) Network tab to see what is being sent in the request.
Is there anything specific you don't like?
The lack of copy & paste (a huge time saver), for the first thing.
Then, the color-picker is virtually unusable for its small size etc.
These two combined means one could hardly, for example, build 2 labels of exactly the same style in a minute, not to mention seconds (should have been).
But above all, it's the 'logic' of the UI. There are inconsistencies. For example, you create a div panel, and you put a form inside a label above, then oops you cannot move the form or the label independently; you can just move the panel as a whole.
To conclude, there can be more glitches that I could not work around, quite unlike the old editor (e.g. the "sticky" copy & paste issue, which has a work around).
Ok, I will check it out. Hope this issue can be solved overall by tomorrow (I have tried half day today). Thx.
Hi, Max.
As per your request, please see the following.
code
Request URL:https://api.tiggzi.com/rest/1/db/collections/questions
Request Method:POST
Status Code:500 Internal Server Error
Request Headersview source
Accept:/
Accept-Charset:Big5,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-TW,zh;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:84
Content-Type:application/json
Cookie:__qca=P0-786746504-1362653441589; org.jboss.seam.security.authtoken=1gRtDbPdbbTMvdG6TjOMbiBcDlRJeqDJ0rCp4nOpenCsGpPcDbE3baC3ejDsHaE3enDJGqE3KnCJ4vDpOsDJSnDJGr; JSESSIONID=ZKMY8HhUtdykjc2tidqTyj2S.undefined; __utma=169854756.90578054.1362590823.1362800450.1362848917.15; __utmb=169854756.5.10.1362848917; __utmc=169854756; __utmz=169854756.1362620946.4.2.utmcsr=project.tiggzi.com|utmccn=(referral)|utmcmd=referral|utmcct=/project/11b8c90a-8fd5-49e4-a1fa-e49d293fc837/edit; JSESSIONIDSSO=0NlnMVYrd8as+OCwmCSp4izo.undefined
Host:api.tiggzi.com
Origin:http://xandymarket.com
Referer:http://xandymarket.com/kquizinput/
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.33 (KHTML, like Gecko) Chrome/27.0.1430.3 Safari/537.33
X-Tiggzi-Database-Id:50e5692xxxxxxxxxxxxxxxxxx
X-Tiggzi-Session-Token:0b149d1b-1899-486c-9079-xxxxxxxxxxx
Request Payload
question=&question=abc&choice1=&choice2=&choice3=&choice4=&answer=&explanation=sads+
Response Headersview source
Access-Control-Allow-Origin:http://xandymarket.com
Connection:keep-alive
Content-Type:application/json
Date:Sat, 09 Mar 2013 17:49:09 GMT
Server:nginx
Transfer-Encoding:chunked
/code
Have to get some sleep after this one. Talk later. Thx!