diff options
author | snowdrop | 2004-01-13 12:31:57 +0000 |
---|---|---|
committer | snowdrop | 2004-01-13 12:31:57 +0000 |
commit | fd81cc7f3e234d16aeb18e5893d684a1cfe2729e (patch) | |
tree | 921242b0361a13fa93d38fb3166c029c8421a6d1 /nanohttp/nanohttp-client.c | |
parent | 62c6d2b165911e5bc96da38395e0fe2fb219fcc1 (diff) | |
download | csoap-fd81cc7f3e234d16aeb18e5893d684a1cfe2729e.tar.gz csoap-fd81cc7f3e234d16aeb18e5893d684a1cfe2729e.tar.bz2 |
optimized code
Diffstat (limited to 'nanohttp/nanohttp-client.c')
-rw-r--r-- | nanohttp/nanohttp-client.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c index de843ab..b55517a 100644 --- a/nanohttp/nanohttp-client.c +++ b/nanohttp/nanohttp-client.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-client.c,v 1.9 2004/01/06 08:05:43 snowdrop Exp $ + * $Id: nanohttp-client.c,v 1.10 2004/01/13 12:31:57 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -461,8 +461,10 @@ int httpc_receive_response(httpc_conn_t *conn, int status; /* receive header */ + log_verbose1("receiving header"); res = httpc_receive_header(conn->sock); if (res == NULL) return 1; + log_verbose1("header ok"); /* Invoke callback */ start_cb(conn, userdata, res->header, res->spec, @@ -850,9 +852,9 @@ int httpc_post_finish_cb(httpc_conn_t *conn, { int status; - status = hsocket_send(conn->sock, "0\r\n"); + status = hsocket_send(conn->sock, "0\r\n\r\n"); if (status != HSOCKET_OK) return status; - + status = httpc_receive_response(conn, start_cb, cb, userdata); return status; } @@ -861,3 +863,20 @@ int httpc_post_finish_cb(httpc_conn_t *conn, + + + + + + + + + + + + + + + + + |