Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 588
Hunt Avatar asked Dec 16 '22 16:12

Hunt


2 Answers

its now working in my system.

i think your error encountered may actually be a configuration issue with the openfire.

It is designed to reply with HTTP 400 Bad Request if there is no element in the request. You can test this yourself by providing a element in your query.

Try the following URL in your browser:

 http://www.servername:7070/http-bind/?<body rid="1"/>
like image 157
Vijay Lathiya Avatar answered Jan 13 '23 14:01

Vijay Lathiya


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.

like image 42
Milos Jovanovic Avatar answered Jan 13 '23 14:01

Milos Jovanovic