In the DHTML runtime, you may use any REST request method.

The Flash 8 player  just does not natively  support anything besides
GET and POST,and it appears that flash 9/10 won't do PUT or DELETE
either, unless you are running in the AIR player environment.  For the
 Flash 9 player in a regular browser, it appears to be limited to GET
and POST, at least according to how I read the AS3 documentation.

Note however, , if your application is making proxied request rather
than a SOLO request, the proxy server (LPS) can perform the REST PUT
or DELETE methods. So if you are willing to deploy your application
with proxied
data requests, then you could use these methods in a Flash application.

[regarding the Flash 9 player, here's what the AS3 docs say for
flash.net.URLRequest]

method  property        
method:String  [read-write]
Language Version :      ActionScript 3.0
Runtime Versions :      AIR 1.0, Flash Player 9
Controls the HTTP form submission method.

For SWF content running in Flash Player (in the browser), this
property is limited to GET or POST operation, and valid values are
URLRequestMethod.GET or URLRequestMethod.POST. For content running in
Adobe AIR, if the content is in the application security domain, you
can use any string value; otherwise (if the content is not in the AIR
application security domain) you are still restricted to using GET or
POST.

Note: If running in Flash Player and the referenced form has no body,
Flash Player automatically uses a GET operation even if the method is
set to URLRequestMethod.POST.

The default value is URLRequestMethod.GET.
On Mon, Mar 2, 2009 at 5:19 PM, doug livesey <[email protected]> wrote:
> Hi -- from scouting around the net, it looks like maybe Laszlo won't support
> proper REST, as it doesn't support any verbs apart from GET and POST.
> Is that correct?
> How are people getting around it?
> I'm a Rails developer, and for me to be able to embrace Laszlo, I'll really
> *need* REST.
> Cheers,
>    Doug.
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to