Publishing to the default rabbitmq exchange using the http api

∥☆過路亽.° 提交于 2019-12-04 23:25:31

This is the way to publish a message to amq.default:

http://localhost:15672/api/exchanges/%2f/amq.default/publish

with this body

{"properties":{},
 "routing_key":"queue_test",
 "payload":"message test ",
 "payload_encoding":"string"}

routing_key is the queue where you will publish the message.

Following an example using a chrome plug-in:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!