[Laszlo-user] HTTP verbs for RESTful applications
Simon Cornelius P. Umacob
simoncpu at infoweapons.com
Tue Jun 12 22:33:50 PDT 2007
Henry Minsky wrote:
> 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.
>
Very cool. Thanks for the quick response! =)
[ simon.cpu ]
--
And /usr/games/fortune futurama says:
Leela: "There it is, the near-death star."
More information about the Laszlo-user
mailing list