xmppopenfirestrophe

enable http-bind on openfire


I am trying to enable BOSH connection over Openfire so that i can create a XMPP client over a web. curretly i am testing it with the strophe.js.

the problem is when i try to fire following url in a browser i am getting

http://www.mydomain.com:7070/http-bind

following error

HTTP ERROR 400


    Problem accessing /http-bind/. Reason:

        Bad Request
    Powered by Jetty://

here is my server setting , i saw few threads but they arent helpful

enter image description here

update

i have made a connection using strophe but i am getting following error in browser trance

enter image description here


Solution

  • In your update Strophe is sending OPTIONS HTTP requests which means that it is negotiating cross domain communication. Requests are painted red which means that this is failing for some reason. Probably misconfiguration. There is a nice article about that here: http://metajack.im/2010/01/19/crossdomain-ajax-for-xmpp-http-binding-made-easy/

    Otherwise, when Strophe does its regular BOSH communication it uses POST method.