mauroprojetos / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

BOSH support broken? #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

First, of course I've seen the other issue about!
But I just want to know if BOSH support is realy out of date...

No matter which distro, Jabber and Webserver I use, I always get the
following error:

Fatal error:  Uncaught exception 'Exception' with message 'String could not
be parsed as XML' in /var/www/xmpphp-0.1rc2-r77/XMPPHP/BOSH.php:75
Stack trace:
#0 /var/www/xmpphp-0.1rc2-r77/XMPPHP/BOSH.php(75):
SimpleXMLElement->__construct('')
#1 /var/www/xmpphp-0.1rc2-r77/webclient_example.php(22):
XMPPHP_BOSH->connect('http://192.168....', 1, true)
#2 {main}
  thrown in /var/www/xmpphp-0.1rc2-r77/XMPPHP/BOSH.php on line 75

JWChat works fine on both, ejabberd and openfire!
I've reproduced it using a simple GMap API call and do a spelling mistake
to the var containing the XML Response.
For me that means that "$response" in line 75 in file BOSH.php is empty!?

regards

Sven

Original issue reported on code.google.com by svenriss...@gmail.com on 1 Nov 2009 at 11:22

GoogleCodeExporter commented 9 years ago
Me and a friend are making some unofficial docs, they will come out soon. I will
notifie you when it's ready.

Original comment by toye.thomas@gmail.com on 7 Nov 2009 at 11:21

GoogleCodeExporter commented 9 years ago
is there any news about this issue?

Original comment by dieg...@gmail.com on 25 Jan 2010 at 10:57

GoogleCodeExporter commented 9 years ago
I am currently using strophe to connect with the BOSH client, i am looking at a 
way to make a BOSH connection via PHP backend so that i can store the JID, SID 
and RID for the session that can be used across browser pages.

Currently a new connection is initiated whenever the page refreshes, i also 
tried the same with Strophe storing these values in a cookie but the attach 
always fails with Invalid SID.

The current BOSH implementation fails all the time, is there going to support 
for making BOSH connections inside PHP scripts!!

Original comment by sheld...@gmail.com on 16 Sep 2010 at 5:08