[Laszlo-dev] Re: [Dev] has serverless POST and serverless raw
POST been tested yet?
henry.minsky at gmail.com
Fri Jan 28 16:50:01 PST 2005
Oh, here's the confusion in this discussion... The krank serializer
uses a different Flash API; it is using the XMLSocket API, as opposed
to the XML Object API that I'm looking at using for the data
If we used the XMLSocket API, I think we can post any string we want,
I don't think it actually checks the outgoing data for validity. The
protocol is uses is just to send or receive a string terminated by a
zero byte. On reception, it then tries to parse the string into an
XML object, but you can interecept it and get the raw string if you
want by overriding the onData method.
But the XMLSocket API is more of a raw sockets API, it doesn't do any
HTTP protocol, so I don't think we want to use it, because it wouldn't
handle redirects (I assume the XML.sendAndLoadVars() handles
On Fri, 28 Jan 2005 18:12:57 -0500, P T Withington <ptw at callitrope.com> wrote:
> In the serializer, we just pass strings (they are valid XML, but they
> are just strings), so it must auto-convert strings to XML objects?
> On 27 Jan 2005, at 18:22, Henry Minsky wrote:
> > It's not that it validates the string, its that the API for sending
> > data to the server only takes an XML Object as an arg, so you have to
> > construct one to pass to it. You can construct one by calling new
> > XML(yourstring) or else XML.parseXML(yourstring).
> > On Thu, 27 Jan 2005 17:36:19 -0500, Oliver Steele
> > <steele at laszlosystems.com> wrote:
> >> On Jan 27, 2005, at 5:28 PM, P T Withington wrote:
> >>> It sure is bizarre that the Flash runtime validates your string as
> >>> XML
> >>> before sending it down the byte-stream. What a lot of wasted
> >>> overhead.
> >> What does it do if the string is invalid? The potential upside is
> >> earlier detection of program errors, if invalid XML is reported as an
> >> exception.
> >> _______________________________________________
> >> Laszlo-dev mailing list
> >> Laszlo-dev at openlaszlo.org
> >> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> > _______________________________________________
> > Laszlo-dev mailing list
> > Laszlo-dev at openlaszlo.org
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
More information about the Laszlo-dev