summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2007-03-26 17:55:24 +0000
committerpixel <pixel>2007-03-26 17:55:24 +0000
commit8e7d2bd992d50f614186bf96e027ba832db754f6 (patch)
tree721b0b46b1ca3011ae15af6d81d2e593a553e66d /include
parent1180579bd2ca853a937e6902ad30e4ab9776df43 (diff)
Almost-working HttpClient.
Diffstat (limited to 'include')
-rw-r--r--include/HttpClient.h13
1 files changed, 9 insertions, 4 deletions
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;
};