【发布时间】:2020-02-18 18:17:42
【问题描述】:
我的 5.0.8 ActiveMQ 队列名为 queue/andburn。使用
curl -u admin:admin -d 'body="Aardvark"' "http://localhost:8161/api/message/queue/andburn?type=queue"
创建一个新队列queue.andburn。当我像\/ 一样逃脱/ 时,我得到queue\.andburn。当我省略 type=queue 时,我没有看到我的消息已添加到现有队列中。当我使用/ 表示斜线时也是如此。
注意:所有转义都是在 URI 中的 queue 之后完成的,例如
"http://localhost:8161/api/message/queue\/andburn?type=queue"
ActiveMQ REST page 没有帮助解决这个问题。
这是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
更新:在使用 RestClient gem 通过 Ruby 脚本向 ActiveMQ 发送请求时也会发生这种情况。
【问题讨论】:
标签: activemq