diff options
author | Nick White <git@njw.me.uk> | 2012-07-10 23:09:23 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2012-07-10 23:09:23 +0100 |
commit | 80afa0fb239cdc9b593cd61f322b2b916921d68d (patch) | |
tree | ec0f447cf55f9f2e44b34390fca3aa155005f304 /util.h | |
parent | 94ec3569e3c42693045ee33c36152526cdf46f78 (diff) |
Make HTTP interface more regular
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* See COPYING file for copyright and license details. */ #define COOKIEMAX 1024 int dial(char *host, char *port); -int get(char *host, char *path, char *sendcookie, char *savecookie, char **buf); +int get(char *host, char *path, char *sendcookie, char *savecookie, char **body); +int post(char *host, char *path, char *sendcookie, char *savecookie, char *data, char **body); int gettofile(char *host, char *url, char *sendcookie, char *savecookie, char *savepath); -int post(char *host, char *path, char *data, char **buf); int renameifjpg(char *path); |