diff options
author | shankar | 2010-03-11 04:03:19 +0000 |
---|---|---|
committer | shankar | 2010-03-11 04:03:19 +0000 |
commit | 7823d122b1c9a8d2ea896492d953a248085b2266 (patch) | |
tree | d678ce80e018b4f786d409db478e22d884906613 /src/core/transport/http/sender/http_client.c | |
parent | 79eb37f48200f85832fad2205bfb5e2ae54eda96 (diff) | |
download | axis2c-7823d122b1c9a8d2ea896492d953a248085b2266.tar.gz axis2c-7823d122b1c9a8d2ea896492d953a248085b2266.tar.bz2 |
Fixing issue AXIS2C-1468
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@921684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/core/transport/http/sender/http_client.c')
-rw-r--r-- | src/core/transport/http/sender/http_client.c | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/core/transport/http/sender/http_client.c b/src/core/transport/http/sender/http_client.c index 80e7ee3..e662581 100644 --- a/src/core/transport/http/sender/http_client.c +++ b/src/core/transport/http/sender/http_client.c @@ -190,11 +190,11 @@ axis2_http_client_send( /* In the MTOM case request body is not set. Instead mime_parts array_list is there */ - if(client->req_body) + /*if(client->req_body) { AXIS2_FREE(env->allocator, client->req_body); client->req_body = NULL; - } + }*/ if(!client->req_body && !(client->doing_mtom)) { client->req_body_size = axis2_http_simple_request_get_body_bytes(request, env, @@ -963,3 +963,32 @@ axis2_http_client_set_mtom_sending_callback_name( client->mtom_sending_callback_name = callback_name; return AXIS2_SUCCESS; } + +AXIS2_EXTERN axis2_status_t AXIS2_CALL +axis2_http_client_consume_stream( + axis2_http_client_t * client, + const axutil_env_t * env) +{ + /*axutil_stream_close(client->data_stream, env);*/ + axis2_char_t tmp_buffer[512]; + int read; + + while((read = axutil_stream_read(client->data_stream, env, tmp_buffer, 511)) == 511) + { + } + + return AXIS2_SUCCESS; +} + +AXIS2_EXTERN axis2_status_t AXIS2_CALL +axis2_http_client_reset( + axis2_http_client_t * client, + const axutil_env_t * env) +{ + if(client->req_body) + { + AXIS2_FREE(env->allocator, client->req_body); + client->req_body = NULL; + } + return AXIS2_SUCCESS; +}
\ No newline at end of file |