flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject Re: AW: Allowing PUT and DELETE requests in HTTPService
Date Mon, 07 Sep 2015 15:37:37 GMT
I believe you can solve this by proxying the calls through Javascript,
using ExternalInterface as well.

Thanks,
Om
On Sep 7, 2015 6:45 AM, "Krüger, Olaf" <OKrueger@edscha.com> wrote:

> Hi,
> I ran into the same problem, here's a (very old) summary of the problem:
> http://verveguy.blogspot.de/2008/07/truth-about-flex-httpservice.html
>
> I've found these workarounds:
>
> 1) Using " X-HTTP-Method-Override" (Server side must support this):
>
> http://blog.arulprasad.com/2010/12/http-put-delete-from-actionscript-rest.html
> https://cambiatablog.wordpress.com/2010/08/10/287/
>
> 2) Add an additional argument e.g. "method"  to your request and implement
> a "proxy service" at server side that interprets this argument and calls
> the origin REST service
> ...?_method=PUT/DELETE...
>
> Any news to this issue are very welcome ;-)
>
> Olaf
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Christofer Dutz [mailto:christofer.dutz@c-ware.de]
> Gesendet: Montag, 7. September 2015 14:57
> An: 'dev@flex.apache.org'
> Betreff: Allowing PUT and DELETE requests in HTTPService
>
> Hi,
>
>
> I am currently working on a fun project in which we are having a little
> battle of the client technologies. The backend server is a REST service
> communicating in JSON.
>
> While my Flex client is currently way beyond the others, I just stumbled
> over a problem which I don't quite know how to work around.
>
>
> The problem is that the REST service accepts GET, PUT, DELETE and POST
> requests. I was pretty surprised to find out the Flex doesn't seem to
> support PUT and DELETE. The reasoning behind this seems to be related with
> Browsers not supporting these. Is this still the case? I think a lot of the
> modern JSFrameworks make heavy usage of REST services. Anyway I am creating
> an AIR application, so I don't care about browsers anyway.
>
>
> Is there a way around this to make REST PUT and DELETE calls possible? I
> have tried the URLRequest approach, but this doesn't seem to work.
>
>
> Is this a restriction from the dark ages and we could make Flex work with
> PUT and DELETE or is this a restriction of the Flashplayer or AIR runtime?
>
>
> Chris
>
> ________________________________
>
> Edscha Holding GmbH
> Sitz der Gesellschaft: Remscheid
> Registergericht: Wuppertal, HRB 22889
> Geschäftsführung: Francisco J. Riberas Mera, Francisco López Peña, David
> Vázquez Pascual, Torsten Greiner, Markus Kirchner, Hans-Peter Schulz und
> Volker Weiss
>
> Vertretungsberechtigt sind nur Geschäftsführer und schriftlich
> Bevollmächtigte.
>
> Solely Managing Directors or employees with a written proxy have got power
> of representation.
>
> Der Inhalt dieser E-Mail einschließlich etwaiger beigefügter Dateien ist
> vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der
> bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung,
> Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte
> informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie
> die E-Mail einschließlich etwaiger beigefügter Dateien von Ihrem System.
> Vielen Dank.
>
> The contents of this e-mail including any attachments are confidential and
> may be legally privileged. If you are not the intended recipient, any
> disclosure, copying, distribution or use of its contents is strictly
> prohibited, and you should please notify the sender immediately and then
> delete this e-mail including any attachments from your system. Thank you.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message