Hi,
Thank's for your answer.
This is my configuration :
- I host my webchat on my computer, a Mac Mini. The local IP is 192.168.3.19. The script is heberged on MAMP.
- The server is a virtual server (CentOS) and the XMPP server is Openfire. The local IP is 192.168.3.164. The name of this server is "openfire.example.local".
- I used the proxy_module of MAMP on my Mac Mini to redirect
http://192.168.3.19/http-bind/ on
http://192.168.3.164:5280/http-bind/. The URL I call for the connexion is
http://192.168.3.19/http-bind/.
- The webchat uses jQuery and StropheJS.
This is the request that I sent :
<body rid='
3089996168' xmlns='
http://jabber.org/protocol/httpbind' to='openfire.example.local' 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' route='xmpp:192.168.3.164:5222'/>
But I have no answer from the server. It waits maybe 29 or 30 seconds, and stops...
What is wrong with this configuration ?
When I go with my web browser on
http://192.168.3.164:5280/http-bind/, I have the message "XEP-0124 - BOSH".
When I change the Apache proxy_module to redirect on the port 7070 (the OpenFire HTTP Binding) instead of 5280, and change the name of the server by its IP address (192.168.3.164), it works perfectly. But I have SID errors when I refresh the page, that's why I won't use HTTP-Binding but Punjab...
Ths request is then also :
<body rid='
3037512468' xmlns='
http://jabber.org/protocol/httpbind' to='192.168.3.164' 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' route='xmpp:192.168.3.164:5222'/>
Any idea ?
Thank you very much