httpRead
while (httpRead(http, buffer, sizeof(buffer)) > 0);
extern int httpRead(http_t *http, char *buffer, int length);
while ((rc = httpRead(svc->connection, p, i)) != i) {