title: How I can get the body from a HTTP response?
body: <p>Hey I am doing and Arduino project, and I want to get the body from an HTTP request, here is the code:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>// This will send the request to the server
  client.print(String("GET ") + url + " HTTP/1.1\r\n" +
               "Host: " + host + "\r\n" +
               "Connection: close\r\n\r\n");
  delay(100);
  int liniea_info = 0;
  while(client.available()){
      String line = client.readStringUntil('\r');
      if(liniea_info == 13){Serial.print(line);}
      Serial.print(liniea_info);
      ++liniea_info;
  }
  </code></pre>
  
  <p>This works good, without the integer <code>liniea_info</code> returns me this:</p>
  
  <pre><code>Requesting URL: /output/***.csv?colors=11
  HTTP/1.1 200 OK
  Access-Control-Allow-Origin: *
  Access-Control-Allow-Headers: X-Requested-With
  Content-Type: text/plain
  Transfer-Encoding: chunked
  Date: Sat, 17 Jun 2017 08:09:31 GMT
  Connection: close
  Set-Cookie: SERVERID=; Expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
  Cache-control: private
  
  34
  colors,day,timestamp
  11,12,2017-06-17T07:48:10.619Z
  
  0
  </code></pre>
  
  <p>I thought that with the <code>int liniea_info</code> I will get only the line that I want that is the line <code>"11,12,2017-06-17T07:48:10.619Z"</code>, but no, with this only prints the first line.</p>
  
  <p>Anyone sees what I am doing wrong or how to do it?</p>