title: C++ Casablanca POST request
body: <p>I'm working on a custom Minecraft launcher and having some issues. I need to send a POST request with some JSON in it to "<a href="https://authserver.mojang.com/" rel="nofollow">https://authserver.mojang.com/</a>" and then retrieve some JSON that is returned.</p>
  
  <p>However, I am having issues sending the request. Whenever I try to send the HTTP Request, it errors 405--the request method was not correct. I'm not sure why its saying that. The requirements for authentication are detailed at: <a href="http://wiki.vg/Authentication" rel="nofollow">http://wiki.vg/Authentication</a>. Below is my code for creating the http_client:</p>
  
  <pre><code>http_client client(L"https://authserver.mojang.com/");
  http_request requester;
  requester.set_body(obj2);
  requester.set_method(methods::POST);
  requester.headers().set_content_type(U("application/json"));
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>