I am using apache2 with mod_wsgi for running my python scripts. I wrote a
simple python script (test.wsgi) that'll just output a string:

def application(environ, start_response):
    status = '200 OK'
    output = 'MY OUTPUT TEST'

    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return output

When I open this script with my browser, I see the 'MY OUTPUT TEST' string
on my browser string. So the python script works.

Then in the application.js:
req = new qx.io.remote.Request("http://localhost/test.wsgi";, "GET",
"text/plain");
req.setCrossDomain(true);

req.addListener("completed", function(e) {
        alert(req.getContent());
});

and added a button that'll execute req.send() on click.

I ran the webpage and clicked on the button. I get this error:
015643 qx.io.remote.RequestQueue[21]: Timeout: transport 23
015645 qx.io.remote.RequestQueue[21]: 5107ms > 5000ms
015647 qx.io.remote.Exchange[23]: Timeout: implementation 24

What am I doing wrong?
-- 
View this message in context: 
http://n2.nabble.com/using-Request-with-mod-wsgi-tp4391982p4391982.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to