Client read only part of response and break straight away of client->available() got FALSE , so parsing always fail. But there can be unread data!
You just have to wait until the timeout expires and then give up and return that already read.
This PS try out to read all bytes according to header Content-Length if it present.
Client read only part of response and break straight away of
client->available()
got FALSE , so parsing always fail. But there can be unread data! You just have to wait until the timeout expires and then give up and return that already read.This PS try out to read all bytes according to header Content-Length if it present.