[ejabberd] http_bind BAD REQUEST

straightflush at gmail.com straightflush at gmail.com
Wed Aug 12 06:10:19 MSD 2009


yep your right, works OK with firefox.  Whats wierd is i am trying the
example from strophe (basic.html) and nothing is getting registered
back to the handler, even though I see it in the ejabberd log.  Whats
also wierd is i keep seeing this "Ding Dong" "Terminating session"
now:

=INFO REPORT==== 2009-08-11 22:09:47 ===
D(<0.526.0>:ejabberd_http_bind:505) : ding dong

=INFO REPORT==== 2009-08-11 22:09:47 ===
D(<0.526.0>:ejabberd_http_bind:544) : terminate: deleting session
a6311f394e1a7309b7d42506f6a92ef24ddd8968

Any ideas ?

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