<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><div> Ahhh, thanks. RabbitMQAdmin seems to be the right thing in my case.<br /><br />Cheers, <br />/m<br /></div></td></tr></table>            <div id="_origMsg_">
                <div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
                    <br />
                    <div style="font-family:times new roman, new york, times, serif;font-size:12pt">
                        <font size="2" face="Tahoma">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold;">From:</span>
                            </b>
                            Simon MacMullen &lt;simon@rabbitmq.com&gt;;                            <br>
                            <b>
                                <span style="font-weight:bold:">To:</span>
                            </b>
                             &lt;rabbitmq-discuss@lists.rabbitmq.com&gt;;                                                                                                     <br>
                            <b>
                                <span style="font-weight:bold:">Subject:</span>
                            </b>
                            Re: [rabbitmq-discuss] HTTP Plugin?                            <br>
                            <b>
                                <span style="font-weight:bold;">Sent:</span>
                            </b>
                            Tue, Oct 11, 2011 11:11:26 AM                            <br>
                            </font>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top" style="font:inherit;">On 10/10/11 22:13, Marv Lush wrote:<BR>&gt; Hello all. I'm looking for the easiest way to push JSON messages to my<BR>&gt; broker from a shell script, without installing erlang on my producers.<BR>&gt; The most * convenient* way I can think of doing this is curl and HTTP.<BR>&gt; <BR>&gt; I looked at MochiWeb...but unless the documentation is incomplete...it<BR>&gt; doesn't seem to support something like:<BR>&gt; <BR>&gt; POST <a href="http://mybroker:1234/myRoutingKey" target=_blank >http://mybroker:1234/myRoutingKey</a><BR>&gt; {<BR>&gt; "key1":"value1",<BR>&gt; "key2":"value2"<BR>&gt; }<BR><BR>Well, Mochiweb is a general purpose web server, it doesn't do anything rabbit-y by itself.<BR><BR>&gt; I also looked at JSONRPC, but that doesn't seem to do the trick either.<BR>&gt; Is there another plugin that would allow this? Preferably(but not<BR>&gt; required), one that would
 also allow me to consume from a queue by doing<BR>&gt; something like:<BR>&gt; <BR>&gt; GET <a href="http://mybroker:1234/queueName/consume" target=_blank >http://mybroker:1234/queueName/consume</a><BR>&gt; <BR>&gt; <BR>&gt; Or something, like that...you get the idea...<BR><BR>The closest thing to what you're looking for is currently in the management plugin - see /api/exchanges/[vhost]/[name]/publish and /api/queues/[vhost]/[name]/get, documented at:<BR><BR><a href="http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v2_6_1/priv/www/api/index.html" target=_blank >http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v2_6_1/priv/www/api/index.html</a><BR><BR>If you want to publish from a shell script, the rabbitmqadmin tool that ships with mgmt should be more convenient than curl for talking to this API.<BR><BR><a href="http://www.rabbitmq.com/management-cli.html" target=_blank >http://www.rabbitmq.com/management-cli.html</a><BR><BR>But
 bear in mind that this API doesn't make any attempt to deal with acking in either direction - if your HTTP connection is interrupted you could lose messages. I don't know if this is a big deal for you. If it is, I would write some little script with one of the Python or Ruby APIs to do the right thing over AMQP.<BR><BR>Cheers, Simon<BR><BR>-- Simon MacMullen<BR>RabbitMQ, VMware<BR>_______________________________________________<BR>rabbitmq-discuss mailing list<BR><a ymailto="mailto:rabbitmq-discuss@lists.rabbitmq.com" href="javascript:return">rabbitmq-discuss@lists.rabbitmq.com</a><BR><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target=_blank >https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><BR></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>