From 968f41ba511f8f74377b1a1c7b61ff759ebe3078 Mon Sep 17 00:00:00 2001 From: faketruth Date: Tue, 31 Jan 2012 20:56:42 +0000 Subject: Changed how Lua handles the (Post)Params in the HTTPRequest of a WebPlugin It should now be theoretically possible to upload files through WebAdmin git-svn-id: http://mc-server.googlecode.com/svn/trunk@203 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- WebServer/WebServer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'WebServer/WebServer.h') diff --git a/WebServer/WebServer.h b/WebServer/WebServer.h index a78fc44e4..90b38d407 100644 --- a/WebServer/WebServer.h +++ b/WebServer/WebServer.h @@ -36,6 +36,14 @@ class Socket; class SocketServer; class webserver { public: + struct formdata + { + std::string name_; + std::string filename_; + std::string content_type_; + std::string value_; + }; + struct http_request { http_request() @@ -56,6 +64,7 @@ public: std::string user_agent_; int content_length_; std::string content_type_; + std::vector< formdata > multipart_formdata_; /* status_: used to transmit server's error status, such as o 202 OK -- cgit v1.2.3