Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Connecting to OpenFire with strophe.js 404 error

$
0
0

I am trying to connect to openfire via strophe.js on android phonegap and here is my bosh url BOSH_SERVICE : 'http://192.168.1.4:7070/http-bind/' but I keep getting 404 HTTP error:

<html>

<head>

<metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"/>

<title>Error 404 Not Found</title>

</head>

<body><h2>HTTP ERROR 404</h2>

<p>Problem accessing /httpbind/. Reason:

<pre>    Not Found</pre></p><hr/><i><small>Powered by Jetty://</small></i><br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

<br/>                                               

 

</body>

</html>

 


Openfire is working (I have checked it with Pidgin) and my I am using WAMP as server. How to fix this?

_________________________________________

EDIT:

After I insert http://192.168.1.4:7070/http-bind/ in browser I got this message:

HTTP ERROR 404

Problem accessing /httpbind/. Reason:

    Not Found

 


Powered by Jetty://

but if I enter http://192.168.1.4:7070/http-bind/?%3Cbody%20rid=%221%22/%3E I get good response:
_BOSH_("<body xmlns=\"http://jabber.org/protocol/httpbind\" xmlns:stream=\"http://etherx.jabber.org/streams\" authid=\"a8bb9175\" sid=\"a8bb9175\" secure=\"true\" requests=\"2\" inactivity=\"30\" polling=\"5\" wait=\"60\"><stream:features><mechanisms xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"><mechanism>DIGEST-MD5</mechanism><me chanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</me chanism></mechanisms><compression xmlns=\"http://jabber.org/features/compress\"><method>zlib</method></compression><bind xmlns=\"urn:ietf:params:xml:ns:xmpp-bind\"/><session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\"/></stream:features></body>")


Viewing all articles
Browse latest Browse all 10742

Trending Articles