Functions | |
OT_COMMUNICATION_API_EXPORT bool | download (const std::string &_fileUrl, const std::string &_fileName, std::string &_tempFolder, std::string &_error, int _timeout=3000) |
Download a file via HTTP from a server. | |
bool ot::DownloadFile::download | ( | const std::string & | _fileUrl, |
const std::string & | _fileName, | ||
std::string & | _tempFolder, | ||
std::string & | _error, | ||
int | _timeout = 3000 ) |
Download a file via HTTP from a server.
_fileUrl | The URL of the file to be downloaded |
_fileName | Name of the file where the data will be stored |
_tempFolder | Return parameter containing the name of the temporary directory where the file is stored |
_error | Return parameter containing an error description in case that an error occurred (return value = false) |
_timeout | The timeout for contacting the server |