From daf0f849fd34c6c626b4ff469fa59fb1b55974de Mon Sep 17 00:00:00 2001 From: snowdrop Date: Thu, 18 Dec 2003 12:23:44 +0000 Subject: added hpairnode_get_ignore_case() and used in httpc_talk_to_server() --- examples/nanohttp/httpget.c | 4 +++- examples/nanohttp/httpgetcb.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/nanohttp/httpget.c b/examples/nanohttp/httpget.c index 3ace8c2..4eab70e 100644 --- a/examples/nanohttp/httpget.c +++ b/examples/nanohttp/httpget.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: httpget.c,v 1.1 2003/12/11 14:52:14 snowdrop Exp $ + * $Id: httpget.c,v 1.2 2003/12/18 12:23:44 snowdrop Exp $ * * CSOAP Project: A http client/server library in C (example) * Copyright (C) 2003 Ferhat Ayaz @@ -37,6 +37,8 @@ int main(int argc, char *argv[]) exit(1); } + log_set_level(HLOG_VERBOSE); + conn = httpc_new(); res = httpc_get(conn, argv[1]); diff --git a/examples/nanohttp/httpgetcb.c b/examples/nanohttp/httpgetcb.c index 1f2ca8f..94f5b9c 100644 --- a/examples/nanohttp/httpgetcb.c +++ b/examples/nanohttp/httpgetcb.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: httpgetcb.c,v 1.1 2003/12/11 14:52:14 snowdrop Exp $ + * $Id: httpgetcb.c,v 1.2 2003/12/18 12:23:44 snowdrop Exp $ * * CSOAP Project: A http client/server library in C (example) * Copyright (C) 2003 Ferhat Ayaz @@ -39,7 +39,7 @@ void my_start_callback(httpc_conn_t *conn, void *userdata, pair = header; while (pair != NULL) { - log_debug3("%s: %s", pair->key, pair->value); + log_debug3("%s: '%s'", pair->key, pair->value); pair = pair->next; } @@ -70,6 +70,7 @@ int main(int argc, char *argv[]) } conn = httpc_new(); + /* httpc_set_header(conn, HEADER_TRANSFER_ENCODING, "chunked");*/ httpc_get_cb(conn, argv[1], my_start_callback, my_callback, NULL); httpc_free(conn); -- cgit v1.1-32-gdbae