Using CURL for GET request
<p>I got this nasty problem with my minecraft server program.
I try to get login response from minecraft.com when you try to login to my minecraft server. Everything is fine and setup like verify token key and shared secret.</p>

<p>I just can't get the get request to work with curl :(</p>

<p>This is what I have:</p>

<pre><code>    requestString.append("GET /session/minecraft/hasJoined?username=");
    requestString.append(player.Username);
    requestString.append("&amp;");
    requestString.append("serverId=");
    requestString.append(player.loginHash);
    requestString.append(" HTTP/1.0\r\n");
    std::cout &lt;&lt; requestString &lt;&lt; std::endl;


    curl_easy_setopt(curl, CURLOPT_URL, "https://sessionserver.mojang.com");
    list = curl_slist_append(list, requestString.c_str());
    list = curl_slist_append(list, "User-Agent: MinecraftServerPP\r\n");
    list = curl_slist_append(list, "Connection: close\r\n");
    list = curl_slist_append(list, "\r\n");
    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list);
    curl_easy_setopt(curl, CURLOPT_CAINFO, "cacert.pem");

    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &amp;_write_data);
    curl_easy_setopt(curl, CURLOPT_WRITEDATA, &amp;response);
    curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
</code></pre>

<p>I get an ok from the server, but not the json object containing the data I need.</p>