<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div id="yiv446425198"><div><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; "><div id="yiv446425198yui_3_2_0_15_131827126258640">Hello all. I'm looking for the easiest way to push JSON messages to my broker&nbsp;from a shell script,&nbsp;without installing erlang on my producers. The most *&nbsp;convenient* way I can think of doing this is curl and HTTP.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; "><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; ">I looked at MochiWeb...but unless the documentation is
 incomplete...it doesn't seem to support something like:</div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; "><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; ">POST http://mybroker:1234/myRoutingKey</div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; ">{</div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; ">&nbsp; &nbsp;"key1":"value1",</div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; ">&nbsp; &nbsp;"key2":"value2"</div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0);
 font-family: 'times new roman', 'new york', times, serif; ">}</div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640"><font class="Apple-style-span" size="3">I also looked at JSONRPC, but that doesn't seem to do the trick either. Is there another plugin that would allow this?&nbsp;</font>Preferably<font class="Apple-style-span" size="3">&nbsp;(but not required), one that would also allow me to consume from a queue by doing something like:</font></div><div id="yiv446425198yui_3_2_0_15_131827126258640"><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640">GET http://mybroker:1234/queueName/consume<br></div><div
 id="yiv446425198yui_3_2_0_15_131827126258640"><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640"><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640">Or something, like that...you get the idea...</div><div id="yiv446425198yui_3_2_0_15_131827126258640"><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640"><br></div><div id="yiv446425198yui_3_2_0_15_131827126258640">thanks,</div><div id="yiv446425198yui_3_2_0_15_131827126258640">/m</div><div id="yiv446425198yui_3_2_0_15_131827126258640"><br></div></div></div></div></div></body></html>