ejabberd - Comments for "mod_rest doesn&amp;#039;t respond" https://www.ejabberd.im/node/9831 en Hi, I have the same problem. https://www.ejabberd.im/node/9831#comment-59490 <p>Hi, I have the same problem. But in the log, there's 1 more row:</p> <pre> =INFO REPORT==== 2013-03-08 07:02:53 === I(&lt;0.404.0&gt;:ejabberd_listener:281) : (#Port&lt;0.3791&gt;) Accepted connection {{127,0,0,1},42142} -&gt; {{127,0,0,1},5280} =INFO REPORT==== 2013-03-08 07:02:53 === D(&lt;0.411.0&gt;:ejabberd_http:142) : S: [{["rest"],mod_rest}, {["captcha"],ejabberd_captcha}, {["admin"],ejabberd_web_admin}, {["http-bind"],mod_http_bind}, {["http-poll"],ejabberd_http_poll}] =INFO REPORT==== 2013-03-08 07:02:53 === I(&lt;0.411.0&gt;:ejabberd_http:146) : started: {gen_tcp,#Port&lt;0.3791&gt;} =INFO REPORT==== 2013-03-08 07:02:53 === D(&lt;0.411.0&gt;:ejabberd_http:268) : (#Port&lt;0.3791&gt;) http query: 'POST' /rest/ =INFO REPORT==== 2013-03-08 07:02:53 === D(&lt;0.411.0&gt;:ejabberd_http:447) : client data: "World" =INFO REPORT==== 2013-03-08 07:02:53 === D(&lt;0.411.0&gt;:ejabberd_http:346) : ["rest"] matches ["rest"] </pre><p> But after that, it went silent and no response back.</p> <p>My config are as simple as the readme:</p> <pre> {mod_rest, [{allowed_ips, [{127,0,0,1}]}]} {5280, ejabberd_http [ {request_handlers, [ {["rest"], mod_rest} </pre><p> Can somebody help, many thanks.</p> Fri, 08 Mar 2013 07:17:45 +0000 durianjc comment 59490 at https://www.ejabberd.im Maybe it's a problem with the https://www.ejabberd.im/node/9831#comment-59455 <p>Maybe it's a problem with the domain name. If you have</p> <pre> {hosts, ["localhost"]}. </pre><p>Then make a request like this::</p> <pre> $ wget <noindex><a href="http://localhost:5280/rest/" title="http://localhost:5280/rest/" rel="nofollow" >http://localhost:5280/rest/</a></noindex> --server-response --post-data 'World' --2013-02-20 17:40:40-- <noindex><a href="http://localhost:5280/rest/" title="http://localhost:5280/rest/" rel="nofollow" >http://localhost:5280/rest/</a></noindex> Resolviendo localhost (localhost)... 127.0.0.1 Conectando con localhost (localhost)[127.0.0.1]:5280... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 33 Longitud: 33 [text/html] Grabando a: “index.html.1” 100%[=========================================================&gt;] 33 --.-K/s en 0s 2013-02-20 17:40:40 (1,40 MB/s) - “index.html.1” guardado [33/33] </pre><p> Are you using a recent ejabberd version (like 2.1.11) and recent mod_rest?</p> Wed, 20 Feb 2013 16:42:16 +0000 mfoss comment 59455 at https://www.ejabberd.im