Hi,
I’m using a development tool that has http requests, but only supports GET and POST (not PUT and DELETE). While I have no need to DELETE, I was wondering if there’s a way I could use POST and convert it to a PUT operation (i.e. update) on the server?
Regards
Paul
Hi, Paul,
Such conversion is impossible due to the fact that POST and PUT are two different requests and their implementation may differ on server. So the answer is no, you can’t.
Regards,
Sergey
Hi Paul,
Are you developing with Unity (web player)?
Regards,
Mark
Hi Mark,
No, not using Unity web player.
I’m trying to build for cross-platform. In the past I have used Monkey-X (indie tool at monkey-x.com).
I thought I’d try out another tool that I have played with, but not used in anger, called AGK (AppGameKit) from gamecreators. Unfortunately, it has limited HTTP support (i.e. GET and POST, but no PUT).
I have also tried Titanium (Appcelerator) and cocos2d-js - both have really cumbersome development environments.
Maybe I should try using Unity, even if just for the cross-platform ability.
Regards
Paul
Unity web player has a similar limitation (only GET and POST). One of our partners is building a Unity SDK for Backendless where they overcame that problem. They are in the final stages of the SDK and it should be available soon.
Regards,
Mark
When you say they “overcame that problem”, are they doing something in backendless, i.e. with custom code, or is it something in the SDK?
It is in the SDK itself. Unity provides a way to communicate with the backend via sockets rather than relying on the built-in HTTP mechanism.
Interesting. AGK (and monkey-x) can use sockets directly, is there documentation for this? I’m currently using REST to access your backend.
For this purpose the proper documentation would be on the AGK and monkey-x sides… )) You’d need to figure out how to send REST HTTP requests via custom sockets. Nothing really changes on the Backendless side - the same REST API is available to you.
Thanks Mark, all good information. If I continue down this path I may have a lot of work ahead of me!
Please keep us posted. We’d love to help if we can.
Hi Mark,
One last question, slightly off topic, and probably a long shot, but do you have a locally executable test harness of the backendless service, i.e. runs up as a web server. I have built my own nodejs web server that somewhat simulates your data services to do local testing while on the train with practically no cell service. But a real one would be much better!
Regards
Paul
Hi Paul,
Yes, we do. You can download and install one from here: https://bitnami.com/stack/backendless
Regards,
Mark
Was this ever resolved? I’m currently using Unity 5.3 so I can still use their Web Player but I can’t connect to Backendless.