Hi Simon,

I have successfully implemented a REST architecture in PHP by using OpenLaszlo with Drupal. I had to write a REST server for the 'service' (is that what it's called?) module. I discovered by my own frustration that Flash doesn't support all HTTP verbs, so I believe I just defaulted to GET in all instances. If your service is only going to be accessed by the OL app, however, that doesn't matter too much - as I recall, the real power of the verbs is derived from how modern web browsers make, cache, and ask for permission to do the requests. If your service is only going to be accessed by the OL app, then there should be no problem using GET (and/or POST) in all instances.

In addition to the workarounds already posted, you technically could do the REST integration via JS in the host browser, using the interface between the browser and the OL app for communication. However, having done a fair amount of OL/browser interfacing myself, I recommend against this option.

-Rich

Simon Cornelius P. Umacob wrote:


Hello,

I'm a bit curious, has anyone of you here tried implementing REST architecture with PHP and OpenLaszlo? I'm curious, did you use HTTP PUT for updating the data and HTTP DELETE for deleting the data? Do the major browsers support them?

In an ideal world, all four HTTP verbs should probably be used; however, in actual practice, I have this strange feeling that I'm limited to GET and POST only...


Thanks,



[ simon.cpu ]



Reply via email to