From 8e7d2bd992d50f614186bf96e027ba832db754f6 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 26 Mar 2007 17:55:24 +0000 Subject: Almost-working HttpClient. --- include/HttpClient.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/HttpClient.h b/include/HttpClient.h index b2b8d22..92fcb14 100644 --- a/include/HttpClient.h +++ b/include/HttpClient.h @@ -16,9 +16,12 @@ extern t_headers no_headers; class HttpClient : public Task { public: - HttpClient(const String & url, Handle * out, int * http_code = 0, const String & fake_host = "", t_headers = no_headers); + HttpClient(const String & url, Handle * out, const String & fake_host = "", t_headers = no_headers); virtual ~HttpClient(); String GetStatus(); + + t_headers reply_headers; + String reply; protected: virtual int Do() throw (GeneralException); @@ -28,16 +31,18 @@ class HttpClient : public Task { String url; Handle * out; - int * http_code_p; String fake_host; t_headers headers; Socket Client; - Buffer b; + Buffer b, b2; - String host, uri; + String host, uri, status; int http_code; + + bool chunked; + Task * c; }; -- cgit v1.2.3