Sorry, it wasn't clear to me, are you talking about the DHTML runtime or Flash runtime?
I filed a feature request for setting request headers on data requests in Flash, as http://jira.openlaszlo.org/jira/browse/LPP-4135 In DHTML, it ought to be possible to support DELETE and PUT request methods for requests, but I haven't tested that at all. It would need to be tested in SOLO and proxied mode as well. I'll file an improvement request for that as well, so we don't forget about it. On 6/13/07, Henry Minsky <[EMAIL PROTECTED]> 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. On 6/13/07, Simon Cornelius P. Umacob <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
-- Henry Minsky Software Architect [EMAIL PROTECTED]
