diff options
author | pixel <pixel> | 2007-06-17 15:24:44 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-06-17 15:24:44 +0000 |
commit | 9c524c971f967ccd981ec02891b931587d6b1477 (patch) | |
tree | 8a994d71cf66ac544d39723a4e6e1d5d06987b28 /include | |
parent | 0ccb4c76a3b5ad65fe1b3ae2dee5095483de8d8d (diff) |
Adding POST system to the HttpClient, and variables and headers sent from Lua
Diffstat (limited to 'include')
-rw-r--r-- | include/HttpClient.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/HttpClient.h b/include/HttpClient.h index 17c66b1..355b833 100644 --- a/include/HttpClient.h +++ b/include/HttpClient.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: HttpClient.h,v 1.3 2007-05-30 11:57:08 pixel Exp $ */ +/* $Id: HttpClient.h,v 1.4 2007-06-17 15:24:44 pixel Exp $ */ #ifndef __HTTPCLIENT_H__ #define __HTTPCLIENT_H__ @@ -30,6 +30,7 @@ #include <Handle.h> #include <Buffer.h> #include <Exceptions.h> +#include <Variables.h> typedef std::vector<String> t_headers; @@ -37,7 +38,7 @@ extern t_headers no_headers; class HttpClient : public Task { public: - HttpClient(const String & url, Handle * out, const String & fake_host = "", t_headers = no_headers); + HttpClient(const String & url, Handle * out, const String & fake_host = "", t_headers = no_headers, const Variables & = Variables()); virtual ~HttpClient(); String GetStatus(); @@ -54,6 +55,7 @@ class HttpClient : public Task { Handle * out; String fake_host; t_headers headers; + Variables vars; Socket Client; Buffer b, b2; |