Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
httpservice method="DELETE" does not work   Message List  
Reply | Forward Message #55013 of 150535 |
RE: [flexcoders] Re: httpservice method="DELETE" does not work

I don't know about PUT/DELETE, but I do know that 500-range responses were looked at in the player, and that it's not a simple thing to do (and if I remember correctly, may not even be possible in all cases) as it all depends on what browser APIs allow.  -Brian


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@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of brian.knorr
Sent: Friday, November 03, 2006 12:05 PM
To: flexcoders@yahoogroups.com
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@yahoogroups.com, "Seth Hodgson" <shodgson@...>
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". In this case a request to build and
send a proxied PUT/DELETE/OPTIONS/etc. request is sent to FDS and
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@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of brian.knorr
> Sent: Friday, November 03, 2006 10:33 AM
> To: flexcoders@yahoogroups.com
> 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...thanks,
>
> Brian
>



Fri Nov 3, 2006 11:19 pm

bdeitte
Offline Offline
Send Email Send Email

Forward
Message #55013 of 150535 |
Expand Messages Author Sort by Date

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...
brian.knorr
Offline Send Email
Nov 3, 2006
6:45 pm

DELETE is not supported. Carson ____________________________________________ Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com...
Carson Hager
tcarsonhager
Offline Send Email
Nov 3, 2006
7:15 pm

The documentation for HTTPService.method states that "Permitted values are GET, POST, HEAD, OPTIONS, PUT, TRACE and DELETE" See the docs here: ...
brian.knorr
Offline Send Email
Nov 3, 2006
8:46 pm

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...
Seth Hodgson
seth_hodgson
Online Now Send Email
Nov 3, 2006
7:30 pm

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...
brian.knorr
Offline Send Email
Nov 3, 2006
10:10 pm

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...
Seth Hodgson
seth_hodgson
Online Now Send Email
Nov 3, 2006
11:09 pm

You don't need to buy FDS if all you need is a proxy. You could build your own in any server-side language like Java, .NET, PHP, CF, Perl, whatever and make...
Samuel R. Neff
sam_atellis
Online Now Send Email
Nov 3, 2006
11:53 pm

Just to be an HTTP stickler: GET is idempotent. If you want to change the state of something on the server (which DELETE implies), POST is a much better...
Justin Makeig
jmakeig
Offline Send Email
Apr 10, 2007
10:51 pm

My understanding is that this is indeed wrong. I believe the underlying player is limited to post/get. I tested this some time ago trying to get true REST...
Carson Hager
tcarsonhager
Offline Send Email
Nov 3, 2006
8:56 pm

I don't know about PUT/DELETE, but I do know that 500-range responses were looked at in the player, and that it's not a simple thing to do (and if I remember...
Brian Deitte
bdeitte
Offline Send Email
Nov 4, 2006
2:16 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help