From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Seth Hodgson
Sent: Friday, November 03, 2006 6:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: httpservice method="DELETE" does not work
Hi Brian,
That request has been logged with the player team (as well as a request for WebDAV support). No guarantees on whether or when either of these could be supported.
Best,
Seth
____________
From: flexcoders@yahoogro
Sent: Friday, November 03, 2006 12:05 PM
To: flexcoders@yahoogro
Subject: [flexcoders] Re: httpservice method="DELETE" does not work
Thanks for the clarification. Any idea if there are plans to have
flash fully support the other request methods like DELETE?
Currently we don't have the option of spending $20K per CPU for FDS
just to get REST support.
Thanks,
Brian
--- In flexcoders@yahoogro
wrote:
>
> Hi Brian,
>
> The Flash player only currently supports GET and POST requests
(and converts any POST request with a zero length body or any
unrecognized request method to a GET). PUT and DELETE are not
supported.
>
> For HTTPService you can get around this limitation if your
HTTPService has useProxy="true"
send a proxied PUT/DELETE/OPTIONS/
the server builds and sends the actual HTTP request and returns the
response to the player. The proxy also handles fault responses in
the 500 range and returns them to the player in a form that
HTTPService can process usefully (the player doesn't handle
responses in the 500 range). We have Pete Farland to thank for all
that :)
>
> I'll log a doc bug to clarify that the extended set of methods are
only supported when using the proxy.
>
> If you're not using the proxy, HTTPService uses a
flash.net.URLLoader to make the request directly so you're limited
to what the player supports.
>
> HTH,
> Seth
>
> ____________
> From: flexcoders@yahoogro
[mailto:flexcoders@yahoogro
> Sent: Friday, November 03, 2006 10:33 AM
> To: flexcoders@yahoogro
> Subject: [flexcoders] httpservice method="DELETE" does not work
>
> We are building REST apis in our Rails backend and for a delete
> action it expects to recieve a HTTP DELETE request, but with Flex2
> when you set the method="DELETE" on an httpservice it doesn't send
> the DELETE, instead it sends a GET which causes our REST apis to
> fail. The documentation for httpservice says it supports
> method="DELETE"
>
> Any advise is greatly appreciated.
>
> Brian
>