有没有办法在不需要body =的情况下POST到ActiveMQ主题?
例如而不是这个:
curl -u test:test -d“body = message”http:// server:8161 / api / message / testtopic?type = topic用这个:
卷曲-…
它 事实证明 指定的 Content-Type 允许你省略 body=
Content-Type
body=
curl -u test:test -d "message" -H "Content-Type: text/plain" http://server:8161/api/message/testtopic?type=topic