From ef184dc4c57cf56643c3446e7d527b4ab0bc7df6 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Thu, 18 Dec 2003 11:14:37 +0000 Subject: begin implementing httpc_get and httpc_post --- nanohttp/nanohttp-client.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nanohttp/nanohttp-client.h') diff --git a/nanohttp/nanohttp-client.h b/nanohttp/nanohttp-client.h index 60abc57..7fad690 100644 --- a/nanohttp/nanohttp-client.h +++ b/nanohttp/nanohttp-client.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-client.h,v 1.1 2003/12/11 14:51:04 snowdrop Exp $ + * $Id: nanohttp-client.h,v 1.2 2003/12/18 11:14:37 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -54,19 +54,22 @@ typedef void (*httpc_response_start_callback)(httpc_conn_t*, void*, hpair_t*, httpc_conn_t* httpc_new(); void httpc_free(httpc_conn_t* conn); -void httpc_add_header(httpc_conn_t *conn, const char* key, const char* value); int httpc_set_header(httpc_conn_t *conn, const char* key, const char* value); hresponse_t *httpc_get(httpc_conn_t *conn, const char *url); -hresponse_t *httpc_post(httpc_conn_t *conn, const char *url, const char *content); +hresponse_t *httpc_post(httpc_conn_t *conn, const char *url, + int conten_size, const char *content); int httpc_get_cb(httpc_conn_t *conn, const char *url, httpc_response_start_callback start_cb, httpc_response_callback cb, void *userdata); + int httpc_post_cb(httpc_conn_t *conn, const char *url, httpc_response_start_callback start_cb, - httpc_response_callback cb, void *userdata); + httpc_response_callback cb, int content_size, + char *content, void *userdata); + #endif -- cgit v1.1-32-gdbae