Hi,
I've been searching for the answer and found quite some relative posts but still stuck. Since I couldn't connect to
http://bosh.metajack.im:5280/xmpp-httpbind I setup a local ejabberd BOSH connection manager. I removed strophe.flXHR.
js reference in peek.html, changed the connection to
http://localhost:5280/http-bind in peek.
js. The localhost BOSH link works in the browser.
But when running peek.html, the status is always 1. The URL I use is
http://localhost/ch04/peek.html. The request and response are as follows:
Request URL:
http://localhost:5280/http-bind
Request Method:POST
Status Code:200 OK
Request Headers
POST /http-bind HTTP/1.1
Host: localhost:5280
Connection: keep-alive
Content-Length: 207
Origin:
http://localhost
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
Content-Type: application/xml
Accept: */*
Referer:
http://localhost/ch04/peek.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Request Payload
<body rid='1463697149' xmlns='http://jabber.org/protocol/httpbind' to='jabin.org' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>
Response Headers
HTTP/1.1 200 OK
Content-Length: 131
Content-Type: text/xml; charset=utf-8
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type
Response
<body type='terminate' condition='internal-server-error' xmlns='http://jabber.org/protocol/httpbind'>BOSH module not started</body>
Could someone please give me some idea?
Thanks!