31 class Error :
public std::exception
38 virtual const char*
what() const noexcept
44 std::string
get(
const std::string& sUrl,
const std::string& sUserName =
"",
const std::string& sPassWord =
"");
45 size_t put(
const std::string& sUrl,
const std::string& sFileName,
const std::string& sUserName =
"",
const std::string& sPassWord =
"");
A class for URL exceptions.
virtual const char * what() const noexcept
Error(const std::string &what)
size_t put(const std::string &sUrl, const std::string &sFileName, const std::string &sUserName, const std::string &sPassWord)
Upload a file to a destination and return the transmitted bytes.
std::string get(const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord)
Get the contents of a URL.