Created
February 8, 2014 11:26
-
-
Save matwey/8882327 to your computer and use it in GitHub Desktop.
Send binary payloaded message to AMQP unsing rabbitmq rest-api.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BODY='\00\00\00\01\00\00\00\00' | |
BODY64=$(echo -ne $BODY | base64) | |
S='{"properties":{},"routing_key":"test","payload":"'$BODY64'","payload_encoding":"base64"}' | |
echo $S | curl --data-binary @- -i -u guest:guest http://192.168.185.182:15672/api/exchanges/%2f/amq.default/publ ish -X POST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great works. Thanks a lot!!!