nmattisson/HttpClient — pull request #3 by synox (2014-03-30 21:10:10+00:00)
Title: Implemented chunked read, when not all the data is ready at first read

Hi

I have problems with websites that deliver parts of the response after a delay. I created a php-script (https://gist.github.com/synox/d8fc60b1d9abfd75005e) to test this behaviour.

I fixed the issue by using the alogrithm from:

https://community.spark.io/t/tcp-client-not-reading-anything/2427/20

in the end, it does not take the first value from client.available(), but waits for more data to arrive. Remeber that ``client.available()`` only returns the bytes currently in the buffer, but there might be more bytes coming.

i uploaded the php-script here: http://dubgo.com/tmp/timing.php

## how to reproduce
use your example application.cpp, and replace the request lines with:
request.hostname = "www.dubgo.com";
request.port = 80;
request.path = "/tmp/timing.php";