summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGravatar snowdrop2003-12-18 12:23:44 +0000
committerGravatar snowdrop2003-12-18 12:23:44 +0000
commitdaf0f849fd34c6c626b4ff469fa59fb1b55974de (patch)
treeb8e4e6f42a37c744606f50c097ba16ccbd036222 /examples
parentef184dc4c57cf56643c3446e7d527b4ab0bc7df6 (diff)
downloadcsoap-daf0f849fd34c6c626b4ff469fa59fb1b55974de.tar.gz
csoap-daf0f849fd34c6c626b4ff469fa59fb1b55974de.tar.bz2
added hpairnode_get_ignore_case() and used in httpc_talk_to_server()
Diffstat (limited to 'examples')
-rw-r--r--examples/nanohttp/httpget.c4
-rw-r--r--examples/nanohttp/httpgetcb.c5
2 files changed, 6 insertions, 3 deletions
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);