[Laszlo-user] HTTP verbs for RESTful applications

Henry Minsky henry.minsky at gmail.com
Tue Jun 12 22:18:50 PDT 2007


The SWF runtime uses either the Flash XML.sendAndLoad method to send data to
the server (for POST) or LoadVars.sendAndLoad(for GET).

As far as I know only GET and POST are supported by the Flash runtime.

The API for setting request headers in OpenLaszlo 4 is on LzDataset, the
setHeader() method, which takes a key and a value.


There  didn't  used to be any way to set header fields prior to Flash 8 I
believe, but as  of Flash version 8 they have been added to the  Flash API
for LoadVars and XML.

In OpenLaszlo 4 setting request headers is only implemented
for DHTML.  It would be pretty easy to add to SWF, now that Flash supports
the addRequestHeader() method on LoadVars and the XML class. I'll file a
feature request for that.














On 6/13/07, Simon Cornelius P. Umacob <simoncpu at infoweapons.com> wrote:
>
>
> Hi,
>
> Is there a way for OpenLaszlo to support HTTP PUT and DELETE aside from
> the usual GET and POST?  Doing it manually in plain JavaScript is
> relatively easy-- I just have to specify the verb in
> XMLHttpRequest.open()-- but I can't seem to find a straightforward way
> for doing it in OL.
>
> Also, is it possible to send raw HTTP headers to the server?  If so, can
> I do it in SOLO mode? =)
>
> Thanks!!!
>
> [ simon.cpu ]
>
>
>
>
>
>
>
>
>
> --
> And /usr/games/fortune futurama says:
>
> Professor: "Good news, everyone, the university is bringing me up on
> disclipinary charges. Wait, that's not good news at all."
>



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070612/ffd50c27/attachment.html


More information about the Laszlo-user mailing list