Overview
Features
Download
Documentation
Community
Add-Ons & Services

HTTP download issue

A general discussion forum.

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);
s.sendRequest(request);
HTTPResponse response;
std::istream& rs = s.receiveResponse(response);
std::ostringstream ostr;
size=StreamCopier::copyStream(rs, ostr);
---------

thanks ,
Balu
baluT
 
Posts: 1
Joined: 26 May 2011, 10:54

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest