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:
		
							parent
							
								
									86e7d69e09
								
							
						
					
					
						commit
						57b9866b4b
					
				
					 4 changed files with 44 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue