title: Reading an ActiveMQ Topic using cURL - Getting message bodies
body: <p>I'm trying to debug some JMS code by running an ActiveMQ locally - Using the Docker image <code>rmohr/activemq:5.15.4-alpine</code> - and using cURL to read the messages posted to the topic. This is mostly working, but I'm not getting the actual body of the message.</p>
  
  <p>What I'm doing is:</p>
  
  <pre><code>curl -v -XGET http://admin:admin@localhost:8161/api/message?destination=topic://Events&amp;json=true&amp;oneShot=true
  </code></pre>
  
  <p>And this works as follows:</p>
  
  <pre><code>&gt; GET /api/message?destination=topic://Events&amp;json=true&amp;oneShot=true HTTP/1.1
  &gt; Host: localhost:8161
  &gt; Authorization: Basic YWRtaW46YWRtaW4=
  &gt; User-Agent: curl/7.54.0
  &gt; Accept: */*
  &gt;
  
  &lt; HTTP/1.1 200 OK
  &lt; Date: Tue, 20 Nov 2018 17:09:03 GMT
  &lt; X-FRAME-OPTIONS: SAMEORIGIN
  &lt; Set-Cookie: JSESSIONID=mcjaka6dsuz6534j0gj0gfnv;Path=/api
  &lt; Expires: Thu, 01 Jan 1970 00:00:00 GMT
  &lt; Cache-Control: no-cache, no-store, must-revalidate
  &lt; Pragma: no-cache
  &lt; Content-Type: application/x-www-form-urlencoded; charset=ISO-8859-1
  &lt; destination: topic://Events
  &lt; id: ID:b8b750274409-46243-1542707161912-1:23:1:1:6
  &lt; eventTime$iso8601: 2018-11-20T17:09:13.216Z
  &lt; eventTime$millis: 1542733753216
  &lt; eventName: ProcessItemEvent
  &lt; Transfer-Encoding: chunked
  &lt; Server: Jetty(9.2.22.v20170606)
  &lt;
  </code></pre>
  
  <p>However, the actual payload of the message is not returned. If I take off the <code>json=true&amp;oneShot=true</code> then I get this instead:</p>
  
  <pre><code>{ [5 bytes data]
  </code></pre>
  
  <p>But still no more than that. And there should be a lot more than 5 bytes of payload data for these messages.</p>
  
  <p>What am I missing in getting these messages to come through correctly?</p>
  
  <p>Cheers</p>