My Project
|
http utility More...
#include <HttpUtility.h>
Static Public Member Functions | |
static std::string | UrlDecode (const std::string &encoded) |
static std::string | UrlEncode (const std::string &decoded) |
static std::string | UrlEncode (const char *sz_decoded, int nSize) |
encode a byte | |
static string | HashStringMD5 (const char *input) |
get the 16 bytes (128 bits) md5 of a src string. More... | |
static void | HashStringMD5 (std::string &out, const char *input) |
same as above. More... | |
http utility
|
static |
get the 16 bytes (128 bits) md5 of a src string.
we usually use it to hash downloaded file to save to disk cache Note: there is a still a low possibility of two different src generating the same hash. However, I just ignored it.
src | the src string. |
|
static |
same as above.