Added POST var parsing to HTTP lib, added WriteFile to JSON gearbox version, added real parsing of input to JSON gearbox version

This commit is contained in:
Thulinma 2011-09-26 02:16:12 +02:00
parent 86e7d69e09
commit 57b9866b4b
4 changed files with 44 additions and 27 deletions

View file

@ -30,6 +30,7 @@ namespace HTTP{
void SendBodyPart(Socket::Connection & conn, std::string bodypart);
void Clean();
bool CleanForNext();
std::string urlunescape(char *s); ///< Unescapes URLencoded C-strings to a std::string.
std::string body;
std::string method;
std::string url;
@ -43,5 +44,6 @@ namespace HTTP{
std::map<std::string, std::string> headers;
std::map<std::string, std::string> vars;
void Trim(std::string & s);
int unhex(char c); ///< Helper function for urlunescape.
};//HTTP::Parser class
};//HTTP namespace