title: Boost asio: Unable to read URL Body (JSON)
body: <p>I have test the following Boost::Asio minimal HTTP server example: 
  (<a href="http://www.codeproject.com/Articles/1007262/A-minimal-http-web-server-using-boost-asio" rel="nofollow">Minimal HTTP Server based on Boost:Asio</a>)</p>
  
  <p>I'm able to successfully collect the Header information such as Content-Length but the example hangs when I try to read the Body information. Here is the function that attempts to read the Body information:  </p>
  
  <pre><code>static void read_body(std::shared_ptr&lt;session&gt; pThis) {
              info("read_body");
  
              int nbuffer = pThis-&gt;headers.content_length();
              std::shared_ptr&lt;std::vector&lt;char&gt;&gt; bufptr = std::make_shared&lt;std::vector&lt;char&gt;&gt;(nbuffer);
              asio::async_read(pThis-&gt;socket, boost::asio::buffer(*bufptr, nbuffer),
                      [pThis](const error_code&amp; e, std::size_t s)
                      {
                          info("read body complete");
                      });
          }
  </code></pre>
  
  <p>I have successfully read the same Body information utilizing a solution with <strong>libmicrohttpd</strong>. </p>
  
  <p>Is there a more correct means to read the Body (JSON) information with Boost:ASIO?</p>