title: C++ library to populate SSL stream with valid HTTP requests
body: <p>I am using Boost.Asio <a href="http://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/reference/ssl__stream.html" rel="nofollow noreferrer">ssl streams</a>, and got a working encrypted socket from which I can send and receive bytes.</p>
  
  <p>I successfully did a GET request with the following code : </p>
  
  <pre><code>// Construct HTTP request (using vanilla std::ostream)
  std::ostream request_stream(&amp;request);
  request_stream &lt;&lt; "GET  / HTTP/1.0\r\n";
  request_stream &lt;&lt; "Host: " &lt;&lt; argv[1] &lt;&lt; "\r\n";
  ...
  // Send request
  ssl::stream&lt;tcp::socket&gt; socket
  boost::asio::write(socket, request);
  </code></pre>
  
  <p>And I would now <em>love</em> to find a small C++ library  that would provide an <strong>easy way to get the ostream loaded with a valid HTTP request</strong> !</p>