My 5.0.8 ActiveMQ queue is named queue/andburn
. Using
curl -u admin:admin -d 'body="Aardvark"' "http://localhost:8161/api/message/queue/andburn?type=queue"
creates a new queue queue.andburn
. When I escape /
like \/
I get queue\.andburn
. When I omit type=queue
I don't see my message added to my existing queue. Same when I use /
to represent slashes.
Note: all escaping was done after queue
in the URI, e.g.
"http://localhost:8161/api/message/queue\/andburn?type=queue"
The ActiveMQ REST page was not helpful in addressing this.
Here is the output of curl --version
curl 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
Update: This is also happening when sending requests to ActiveMQ via a Ruby script using the RestClient gem.