On Fri, Feb 6, 2009 at 11:19 AM, Andy Fuchs <[email protected]> wrote:
>
> 1.) It seems I can't use 'POST' when trying to get data across domains
> (rpc.setCrossDomain(true)). Is this a bug or is this SOP? Is there any
> other way in Qooxdoo to get data across domains using POST? (It seems that
> doesn't even work in the local network - but only on the same IP-Adress)
>
You've discovered the "same domain" requirement imposed by the browsers for
security reasons.
qooxdoo provides three transports for remote requests (XmlHTTP, IFrame, and
Script), and selects from among the transports based on the requirements of
the request. Each transport has unique capabilities. The only transport that
supports cross-domain is the Script transport, and that transport only works
with GET requests. You can't do POST for cross-domain requests.
2.) The second thing I couldn't figure out is, how I can put additional data
> into the body of the request? Instead of everything encoded in the URL.
> (See
> the TCP-Flow results at the end of this post:
> -> curl: works -> and has the test-method in the body.
> -> qooxdoo: doesn't work -> and has everything in the URL
>
GET requests use URL encoding of the parameters to the request. One of the
disadvantages of using a GET is that the data quantity is limited because
the parameter length is limited.
Derrell
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel