[ejabberd] http_bind BAD REQUEST

straightflush at gmail.com straightflush at gmail.com
Wed Aug 12 05:20:40 MSD 2009


i think this may be a strophe specific issue as posting to the service
looks OK, here is the response

<body xmlns='http://jabber.org/protocol/httpbind'
sid='eb5931b8af681752c6c0a480eada110e8a418a3a' wait='60' requests='2'
inactivity='30' maxpause='120' polling='2' ver='1.6'
from='example.org' secure='true' authid='1441189004'
xmlns:xmpp='urn:xmpp:xbosh'
xmlns:stream='http://etherx.jabber.org/streams'/>

Anyone have issues with strophe and http-bind ?

On Tue, Aug 11, 2009 at 8:44 PM,
straightflush at gmail.com<straightflush at gmail.com> wrote:
> seeing this error when trying http_bind
>
> config file has :
>
>  {5280, ejabberd_http,    [http_bind, {request_handlers,
> [{["http-bind"], mod_http_bind}]}]}
>
>  {mod_vcard,    []},
>  {mod_http_bind, []},
>  {mod_version,  []}
> .......
>
>
> SNIFF TRACE:
>
> OPTIONS /http-bind/ HTTP/1.1
> Host: example.org:5280
> Access-Control-Request-Method: POST
> Origin: http://example.org
> User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_7; en-us)
> AppleWebKit/530.19.2 (KHTML, like Gecko) Version/4.0.2 Safari/530.19
> Content-Type: application/xml
> Referer: http://example.org/strophe/basic.html
> Access-Control-Request-Headers: Content-Type
> Accept: */*
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> Cookie: __unam=9a43afc-1229ad2ff32-6f6ff114-10;
> jiveforums.admin.logviewer=debug.size=0&info.size=0&warn.size=0&error.size=0
> Content-Length: 0
> Connection: keep-alive
>
> HTTP/1.1 400 Bad Request
> Content-Type: text/html; charset=utf-8
> Content-Length: 336
>
> <?xml version='1.0'?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
> lang="en"><head><meta http-equiv="Content-Type" content="text/html;
> charset=utf-8"/></head><body><h1>400 Bad Request</h1></body></html>
>
> Any ideas ?  This is ejabberd 2.0.5
>
> AD
>


More information about the ejabberd mailing list