On Fri, Apr 29, 2011 at 10:26, dabd <[email protected]> wrote:
> I am trying to send a POST request but I get a timeout message.
> The code I am using follows this sequence http://paste.ly/6xL9
>
>
1 <http://paste.ly/6xL9#l-1>2 <http://paste.ly/6xL9#l-2>3
<http://paste.ly/6xL9#l-3>4 <http://paste.ly/6xL9#l-4>5
<http://paste.ly/6xL9#l-5>6 <http://paste.ly/6xL9#l-6>7
<http://paste.ly/6xL9#l-7>8 <http://paste.ly/6xL9#l-8>9
<http://paste.ly/6xL9#l-9>
url = "some url";req = new qx.io.remote.Request(url, "POST",
"text/plain");req.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");req.setParameter("query", "some
query");req.setCrossDomain(true);req.addListener("completed",
function(e) { alert(e.getContent());
});req.send();
There is no way to send a cross-domain POST request. When you specify that
the request is to be cross-domain, the only "transport" within qooxdoo that
can work cross-domain is the Script transport, which uses GET requests and
expects a response in a well-defined format similar to JSONP.
There are some browser/server combinations, using special responses from the
server specifying that cross-domain requests are allowed Those allow
cross-domain requests via XmlHTTPRequest but that facility has not been
added to qooxdoo, and no one yet, to my knowledge, has requested or
implemented it.
Granted, timeout is certainly not the most meaningful response to your
invalid request.
Derrell
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel