From c4286ea5287279836c5ef49a06153db95429bfe6 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Wed, 8 Feb 2006 11:13:13 +0000 Subject: the attached patches address the following issues: * query the port the server is listening on {soap_server,httpd}_get_port * the possibility to add a default service via httpd_register_default * remove some compiler warnings (on FreeBSD pthread_t is a pointer to a struct pthread, on Linux it is a (unsigned?) long int) tschuess, Heiko --- nanohttp/nanohttp-client.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nanohttp/nanohttp-client.h') diff --git a/nanohttp/nanohttp-client.h b/nanohttp/nanohttp-client.h index 2b93617..03e1e16 100644 --- a/nanohttp/nanohttp-client.h +++ b/nanohttp/nanohttp-client.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-client.h,v 1.18 2006/01/10 11:29:05 snowdrop Exp $ + * $Id: nanohttp-client.h,v 1.19 2006/02/08 11:13:14 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -88,11 +88,13 @@ void httpc_close_free(httpc_conn_t * conn); */ int httpc_set_header(httpc_conn_t * conn, const char *key, const char *value); +int httpc_add_header(httpc_conn_t *conn, const char *key, const char *value); +void httpc_add_headers(httpc_conn_t *conn, const hpair_t *values); + /** Invoke a "GET" method request and receive the response */ -herror_t -httpc_get(httpc_conn_t * conn, hresponse_t ** out, const char *urlstr); +herror_t httpc_get(httpc_conn_t * conn, hresponse_t ** out, const char *urlstr); /** Start a "POST" method request -- cgit v1.1-32-gdbae