HTTP download issue

A general discussion forum.
Posts: 1
Joined: 26 May 2011, 10:54

HTTP download issue

Postby baluT » 26 May 2011, 12:23

Hello experts,

I am not able to download the large file (>1GB) with the copyStream/copyStreamUnbuffered. It just returns with 0.
if the filesize is less than 1GB, the copyStream works. Do we have to set any HTTP fields before the copyStream ?

HTTPSTestServer srv;
HTTPSClientSession s("localhost", srv.port());
HTTPRequest request(HTTPRequest::HTTP_GET, url);
HTTPResponse response;
std::istream& rs = s.receiveResponse(response);
std::ostringstream ostr;
size=StreamCopier::copyStream(rs, ostr);

thanks ,

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests