@@ -102,7 +102,8 @@ Image::JpegImage FoscamRecorder::Snapshot(Http::HttpClient* pHttpClient, const S
try
{
- image.SetImageData(pHttpClient->GetUrlContents(url.str()));
+ Http::HttpRequest request(url.str());
+ image.SetImageData(pHttpClient->Open(request));
}
catch (const std::exception& e)
@@ -93,7 +93,8 @@ void VStarCamRecorder::Snapshot(Http::HttpClient* pHttpClient, const Settings& s
std::ofstream file(fileName.str());
- file << pHttpClient->GetUrlContents(url.str());
+ file << pHttpClient->Open(request);
file.close();
@@ -101,7 +101,8 @@ Image::JpegImage WatchBotRecorder::Snapshot(Http::HttpClient* pHttpClient, const