Line 115... |
Line 115... |
115 |
THTTPClient();
|
115 |
THTTPClient();
|
116 |
~THTTPClient();
|
116 |
~THTTPClient();
|
117 |
|
117 |
|
118 |
char *tcall(size_t *size, const std::string& URL, const std::string& user, const std::string& pw);
|
118 |
char *tcall(size_t *size, const std::string& URL, const std::string& user, const std::string& pw);
|
119 |
std::string makeURL(const std::string& scheme, const std::string& host, int port, const std::string& path);
|
119 |
std::string makeURL(const std::string& scheme, const std::string& host, int port, const std::string& path);
|
- |
|
120 |
static std::string makeURLs(const std::string& scheme, const std::string& host, int port, const std::string& path);
|
120 |
// char *getContent(const char *buffer);
|
121 |
// char *getContent(const char *buffer);
|
121 |
// char *getContent() { return mBody.body; }
|
122 |
char *getContent() { return mBody.body; }
|
122 |
size_t getContentSize() { return mBody.len; }
|
123 |
size_t getContentSize() { return mBody.len; }
|
123 |
|
124 |
|
124 |
protected:
|
125 |
protected:
|
125 |
URL_t& parseURL(const std::string& URL);
|
126 |
URL_t& parseURL(const std::string& URL);
|
126 |
int sockWrite(int fd, char *buffer, size_t len);
|
127 |
int sockWrite(int fd, char *buffer, size_t len);
|