Hello, I have a problem with Http module.

I use APE as push engine and Django for main site. I wrote the server
module which must send the request to my Django-based application when
new user join the channel. My Django-based project runs on the local
machine on local.jjjbbb.org.

Ape.addEvent("join", function(user, channel) {
    var request = new Http('http://local.jjjbbb.org/test-
this/');    // this is a my test url
    request.set('method', 'POST');
    request.writeData('test-message', 'Hello APE!');

    request.getContent( function(result) {
        Ape.log(result);  // this code never work
    });
});

But this code doesn't work, request doesn't receive. When I change url
to anything else (like www.google.com or localhost for example) all
works correctly and I have a result. But when I try to send request to
my application request doesn't work. This problem is only when I try
to send request from server side, when I use jQuery for sending from
client side all works correctly.

Why I cannot send POST request from server side to my domain?

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to