My Project
Static Public Member Functions | List of all members
ParaEngine::CHttpUtility Class Reference

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...
 

Detailed Description

http utility

Member Function Documentation

§ HashStringMD5() [1/2]

string ParaEngine::CHttpUtility::HashStringMD5 ( const char *  input)
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.

Parameters
srcthe src string.
Returns
: 16 bytes

§ HashStringMD5() [2/2]

void ParaEngine::CHttpUtility::HashStringMD5 ( std::string &  out,
const char *  input 
)
static

same as above.


The documentation for this class was generated from the following files: