curl -u user:pass -H "content-type:application/json" -XPOST http://192.168.178.23:15672/api/queues/testvhost/testQueue/get -d'{"count":5,"ackmode":"ack_requeue_true","encoding":"auto","truncate":50000}' -o m1.json
I want to know how to push this file to write messages in another queue using curl.
ThankYou.
{"properties":{},"routing_key":"my key","payload":"my body","payload_encoding":"string"}--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/af83f249-74a5-4978-98f4-8bf17de0c2e3n%40googlegroups.com.
queue1 and queue2. I have messages in queue1 which I stored in a JSON file by using the following command.curl -u user:pass -H "content-type:application/json" -XPOST http://192.168.178.23:15672/api/queues/testvhost/queue1/get -d'{"count":5,"ackmode":"ack_requeue_true","encoding":"auto","truncate":50000}' -o m1.jsonwith the help of this post:- RabbitMQ - Get messages from a queue using curl
My JSON file looks like this:- https://paste-me.net/fibed
I am trying to push this JSON file (messages) to another queue queue2 with the help of the following command:
HTTP/1.1 500 Internal Server Error
content-length: 0
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/CA%2BtaBv8J2kSrULPvZvUtg-%2BCb5G11-fzjZb78P4skDcFxJKgPw%40mail.gmail.com.