[ejabberd] BOSH implementation

Myers Carpenter mcarpenter at rosettastone.com
Tue Jul 14 17:08:41 MSD 2009

On Jul 12, 2009, at 5:28 AM, Yann Leboulanger wrote:

> <body xmlns="http://jabber.org/protocol/httpbind"
> newkey="c10c8adb4f1fc06cbd179a5ac65ba9ce68e6cc89" hold="1" ver="1.6"
> ack="1" route="localhost:5222" wait="30" content="text/xml;
> charset=utf-8" to="localhost" xml:lang="en" rid="395276236616729"
> xmpp:version="1.0" xmlns:xmpp="urn:xmpp:xbosh" />

You could try not using the stuff from section 15 "Protecting Insecure  
Sessions" out of the bosh spec and not using the newkey attr in that  
request.  I see the string "newkey" in the ejabberd BOSH code.

Is your server actually named "localhost"?  You would have a line like  
this in your ejabberd.cfg

{hosts, ["localhost"]}.

Here is a example of the first request that Strophe.js generates:

<body rid='1853398737' xmlns='http://jabber.org/protocol/httpbind'  
to='example.com' xml:lang='en' wait='30' hold='1' window='5'  
content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0'  

Perhaps pair back the newkey and route attrs and see if that works.   
Hope that helps.


More information about the ejabberd mailing list