Closed Anniepoo closed 8 years ago
+1
I fully agree. Will add a POST version. We can keep the GET version, so compatibility need not be affected.
Added. Not sure this is really the ideal yet. Now encodes the format and id in the URL and the
event as POST payload using Content-type: application/x-prolog
. Might be better to access
/pengines/send/
Anyway, this is mostly internal. Updated pengines.js and pengines.pl client to use the POST.
What do we need to do on an application level, other than update our SWI-Prolog version?
Nothing. Just update Prolog and make sure you get pengines.js from the Pengine server or make a new copy (but I advice to always get it from the server you are talking to).
pengine ASK is using HTTP GET as the underlying HTTP mechanism under PLTP.
This has a couple consequences for us:
We're concerned about seeing duplicate queries from the client.
http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers