jaxl/JAXL

prebind is not working in localhost

jo-san opened this issue · 1 comments

Hi all,

I am using JAXL with converse.js for pre-bind users. Its working on my server with the configuration as PHP 5.3.3/Apache 2.2.15/ Cent OS. and my localhost having a configuration like PHP 5.3.5/Apache 2.2.17/Windows 7 But its not working in localhost. The Http-request simply returns 200 OK with content-length as 0.

Can any one help me with this issue.

My http request on my working environment

Request headers
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36 FirePHP/4Chrome
Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
Content-Type: application/x-www-form-urlencoded
Accept: /
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,ms;q=0.6,ta;q=0.4
Cookie: PHPSESSID=8v5ro5ru7hqtaq89lg28i4s2t3; JSESSIONID=19rosig5jcl761akadrawbzui; __utma=242230530.1969473282.1412947324.1414489064.1414553786.15; __utmc=242230530; __utmz=242230530.1412947324.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
X-FirePHP-Version: 0.0.6
X-Wf-Max-Combined-Size: 262144

Response headers
Date: Mon, 03 Nov 2014 12:07:46 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.3.3
Cache-Control: no-cache, must-revalidate
Access-Control-Allow-Origin: *
Content-Length: 101
Connection: close
Content-Type: application/json; charset=utf-8

Response content
{"rid":4302,"sid":"ce99f809","jid":"xxx@iz25pkf9c7hz","bosh_url":"http://xxx.xx.xx.xx/http-bind"}

The same HTTP request from my local system (localhost)

Request headers
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36 FirePHP/4Chrome
Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
Content-Type: application/x-www-form-urlencoded
Accept: /
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8,ms;q=0.6,ta;q=0.4
Cookie: PHPSESSID=5nrfetcglg4useu288g8boi2v0
X-FirePHP-Version: 0.0.6
X-Wf-Max-Combined-Size: 262144

Response headers
Date: Mon, 03 Nov 2014 12:13:52 GMT
Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.5
Cache-Control: no-cache, must-revalidate
Access-Control-Allow-Origin: *
Content-Length: 0
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json; charset=utf-8

Can any one let me know how to debug this one?