Data too big for QHttpResponseHeader
Hi
I am using QHttpResponseHeader to recieve data from a website through a api call.
Now for only 1 particular api, which returns all the data from a account, which is quite big, I am getting a error from windows xp saying the
"Visual Studio Just In Time Debugger"
An unhandled win32 exception occurred in myprogram.exe [4044].....
My guess is that the data sent from the webiste is too big for the QHttpResponseHeader to handle.
Is there any other class that performs the same way as QHttpResponseHeader but handle more data?
this is where i am reading the response. Depending on the call, I am parsing the data.
void api_request::readData(const QHttpResponseHeader &resp)
{
if (resp.statusCode() != 200)
http.abort();
else
{
xml.addData(http.readAll());
}
}
Re: Data too big for QHttpResponseHeader
Quote:
Originally Posted by
srohit24
My guess is that the data sent from the webiste is too big for the QHttpResponseHeader to handle.
No !
Your guess is wrong. This must be crashing by some other cause. Please elaborate your code. And do some error checking for content length.
Re: Data too big for QHttpResponseHeader
Thanks
Fixed it now. Was trying to assign values to variables when the complete data from the website was still being received.
Re: Data too big for QHttpResponseHeader
Quote:
Originally Posted by
yogeshgokul
No !
Your guess is wrong. This must be crashing by some other cause. Please elaborate your code. And do some error checking for content length.
i dont know get content-length ,can you help me ?