Update Http Library
This commit is contained in:
@@ -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
|
||||
try
|
||||
{
|
||||
std::ofstream file(fileName.str());
|
||||
file << pHttpClient->GetUrlContents(url.str());
|
||||
Http::HttpRequest request(url.str());
|
||||
file << pHttpClient->Open(request);
|
||||
file.close();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
|
||||
@@ -101,7 +101,8 @@ Image::JpegImage WatchBotRecorder::Snapshot(Http::HttpClient* pHttpClient, const
|
||||
|
||||
try
|
||||
{
|
||||
image.SetImageData(pHttpClient->GetUrlContents(url.str()));
|
||||
Http::HttpRequest request(url.str());
|
||||
image.SetImageData(pHttpClient->Open(request));
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user