Fixed some issues in HTTP, added GET param support, fixed a bug, etc... lots of maintenaince.

This commit is contained in:
Thulinma 2011-10-16 16:45:55 +02:00
parent 266196d731
commit fdfe95e792
4 changed files with 72 additions and 33 deletions

View file

@ -30,7 +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 urlunescape(std::string in);
std::string body;
std::string method;
std::string url;
@ -40,6 +40,7 @@ namespace HTTP{
bool seenHeaders;
bool seenReq;
bool parse();
void parseVars(std::string & data);
std::string HTTPbuffer;
std::map<std::string, std::string> headers;
std::map<std::string, std::string> vars;