title: Unable to send post request via cpp-netlib
body: <p>I am using cpp-netlib-0.9.4 with Visual Studio 2010. I have a function make_header which is like this:</p>
  
  <pre><code>http::client::request* Interface::make_request_header(const string&amp; uri) {
      string url = host_ + uri;
      string json_type = "application/json";
      http::client::request* req = new http::client::request(url);
      req-&gt;add_header(make_pair("X-AUTH-TOKEN", token_));
      req-&gt;add_header(make_pair("Content-Type", json_type));
      req-&gt;add_header(make_pair("Accepts", json_type));
      return req;
  }
  </code></pre>
  
  <p>A get request works perfectly fine, which is something like:</p>
  
  <pre><code>http::client client;
  http::client::request* req = make_request_header(my_uri);
  http::client::response res = client.get(*req);
  </code></pre>
  
  <p>But a POST request throws an exception/core-dump. I have checked it multiple times otherwise and it seems to work every time on chrome dev http client extension. The URL I use for post request is:</p>
  
  <pre><code>http://myhost.com/commands?query=my query
  </code></pre>
  
  <p>In the above example, I try</p>
  
  <pre><code>http::client client;
  http::client::request* req = make_request_header("http://myhost.com/commands?query=my query");
  http::client::response res = client.post(*req);   // FAILS AT THIS STEP.
  </code></pre>
  
  <p>Any ideas why?</p>