python - Problem with POST request from APE server module -


i use ajax push engine push engine , django main site. wrote server module must send request django-based application when new user join channel using http module. django-based project runs on local machine on local.jjjbbb.org.

ape.addevent("join", function(user, channel) {     var request = new http('http://local.jjjbbb.org/test- this/');    // test url     request.set('method', 'post');     request.writedata('test-message', 'hello ape!');      request.getcontent( function(result) {         ape.log(result);  // code never work     });  }); 

but code doesn't work, request doesn't receive. when change url else (like www.google.com or localhost example) works correctly , have result. when try send request application request doesn't work. problem when try send request server side, when use jquery sending client side works correctly.

why cannot send post request server side domain?

sorry, found problem. ape works fine, little trouble csrf protection in django.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -