[rabbitmq-discuss] RABBIT MANAGEMENT HTTP API CANNOT SUPPORT "Create Queue and Exchange"?

Tim Watson tim at rabbitmq.com
Wed Oct 24 09:46:36 BST 2012


Also:

>>  httpput.setURI(new URI("http://192.168.2.129:55672/api/exchanges/%2f/my-new-exchange"));

the resource path should be /api/exchanges/<vhost>/<exchange-id> if I'm not mistaken.

On 24 Oct 2012, at 09:42, Tim Watson wrote:

> Hi
> 
> On 23 Oct 2012, at 19:13, johnson wrote:
> 
>> Hi all,
>> 
>> I wrote a sample code to use Rabbitmq management HTTP API. For "Create a new vhost", it works fine.
>> 
> 
> <snip>
> 
>> 
>> 
>> But if I want to create a new Exchange or Queue using the same code, it always returns NoHTTPResponseException. It seems that once I setEntity for httpput, the exception occurs.
>> 
> 
> Is there anything in the rabbit logs to indicate that an error occurred? Also, can you do this using curl on the command line? If that works, then you might need to use something like wireshark to look at what your http client is putting on the wire.
> 
> Cheers,
> Tim
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



More information about the rabbitmq-discuss mailing list