summaryrefslogtreecommitdiffstats
path: root/examples/nanohttp/http_client.c
diff options
context:
space:
mode:
authorGravatar m0gg2007-11-04 07:37:38 +0000
committerGravatar m0gg2007-11-04 07:37:38 +0000
commitce0e0469d093be89de52b3ebde2673e5a42ee74f (patch)
treea5d100663592b5bbd486b423711e62c0a02ca608 /examples/nanohttp/http_client.c
parent294374084a574ec74dfad51db494d102d4c3db27 (diff)
downloadcsoap-ce0e0469d093be89de52b3ebde2673e5a42ee74f.tar.gz
csoap-ce0e0469d093be89de52b3ebde2673e5a42ee74f.tar.bz2
Added POST example
Diffstat (limited to 'examples/nanohttp/http_client.c')
-rw-r--r--examples/nanohttp/http_client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/nanohttp/http_client.c b/examples/nanohttp/http_client.c
index adcd199..e2b2654 100644
--- a/examples/nanohttp/http_client.c
+++ b/examples/nanohttp/http_client.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: http_client.c,v 1.10 2007/11/03 22:40:09 m0gg Exp $
+* $Id: http_client.c,v 1.11 2007/11/04 07:37:38 m0gg Exp $
*
* CSOAP Project: A http client/server library in C (example)
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -78,9 +78,9 @@ static void show_response(hresponse_t *res)
int main(int argc, char **argv)
{
- httpc_conn_t *conn; /* Client connection object */
- hresponse_t *res; /* Response object **/
- herror_t status;
+ httpc_conn_t *conn; /* Client connection */
+ hresponse_t *res; /* HTTP response */
+ herror_t status; /* Function return value */
int i;
/* check usage */
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
exit(1);
}
- /* XXX: this is not safe... */
+ /* XXX: argv[i+1] is not safe (userame/password) */
for (i=0; i<argc; i++)
{
if (!strcmp("-headers", argv[i]))