title: libsoup SoupMessage->response_body ->data type issue
body: <p>I am trying to read the response to an HTTP GET request, which I have confirmed is going through.  I am getting an error when compiling stating that </p>
  
  <blockquote>
    <p>SoupMessage->response_body->data is a char not a const char* </p>
  </blockquote>
  
  <p>It is defined as a <code>const char*</code> by the library as shown <a href="https://developer.gnome.org/libsoup/stable/SoupMessageBody.html#SoupMessageBody-struct" rel="nofollow">in the documentation</a>.</p>
  
  <p>I am using Eclipse and the autocomplete says it's a <code>const char *</code> too, but when I build it it still produces errors. </p>
  
  <p>I would appreciate it if anyone could give me some insight into why this might be happening and how I could fix it.  As an FYI I am on Ubuntu and Linux GCC Toolchain if that's relevant.</p>
  
  <pre><code>const char * getTuned(SoupURI *host){
      std::string request;
      SoupMessage *msg;
      std::cout &lt;&lt; soup_uri_get_host(host) &lt;&lt; std::endl;
      request = "http://" + std::string(soup_uri_get_host(host)) + ":8080";
      std::cout &lt;&lt; request &lt;&lt; std::endl;
      session = soup_session_new();
      msg = soup_message_new("GET", request.c_str());
      guint status;
      status = soup_session_send_message(session, msg);
      return *msg-&gt;response_body-&gt;data;
  }
  </code></pre>