Last active
February 16, 2024 13:52
Revisions
-
natritmeyer revised this gist
Jul 15, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ curl -i -X POST -u guest:guest http://192.168.0.1:55672/api/queues/%2f/my_queue/get -H "Content-Type: application/json" -d '{"count":5,"requeue":true,"encoding":"auto","truncate":50000}' -
natritmeyer revised this gist
Jul 15, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,13 +4,13 @@ class QueueInspector include HTTParty basic_auth "guest", "guest" base_uri "http://192.168.0.1:55672" def messages body = {'count' => 5,'requeue' => true, 'encoding' => 'auto', 'truncate' => 50000}.to_json headers = {"Content-Type" => "application/json"} options = {body: body, headers: headers} self.class.post "/api/queues/%2f/my_queue/get", options end end -
natritmeyer revised this gist
Jul 15, 2013 . 1 changed file with 19 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ require 'httparty' require 'json' class QueueInspector include HTTParty basic_auth "guest", "guest" base_uri "http://33.33.33.10:55672" def messages body = {'count' => 5,'requeue' => true, 'encoding' => 'auto', 'truncate' => 50000}.to_json headers = {"Content-Type" => "application/json"} options = {body: body, headers: headers} self.class.post "/api/queues/%2f/cdm.mio/get", options end end response = QueueInspector.new.messages puts response.code puts response.body -
natritmeyer created this gist
Jul 10, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ curl -i -X POST -u guest:guest http://192.168.0.1:55672/api/queues/%2f/my_queue/get -H "Content-Type: application/json" -d'{"count":5,"requeue":true,"encoding":"auto","truncate":50000}'