diff options
author | nadiramra | 2010-06-01 20:09:28 +0000 |
---|---|---|
committer | nadiramra | 2010-06-01 20:09:28 +0000 |
commit | af93f3e81360d8283cf83eb22b9f3165e097774d (patch) | |
tree | 2d91128d6729d8ffc7dcc028fef4e795dcfb1506 /src/core/transport/http/sender/http_client.c | |
parent | f524a1720af5bacf807684d890afa85af4cbe5b7 (diff) | |
download | axis2c-af93f3e81360d8283cf83eb22b9f3165e097774d.tar.gz axis2c-af93f3e81360d8283cf83eb22b9f3165e097774d.tar.bz2 |
Minor API name correction receive to receive. kept old api for backward compatibility but removed from header file.
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@950233 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 | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/core/transport/http/sender/http_client.c b/src/core/transport/http/sender/http_client.c index e662581..f2d17b6 100644 --- a/src/core/transport/http/sender/http_client.c +++ b/src/core/transport/http/sender/http_client.c @@ -526,11 +526,20 @@ axis2_http_client_send( return status; } +/* Following is deprecated and should be removed after 1.8 - spelling of API is not correct */ AXIS2_EXTERN int AXIS2_CALL axis2_http_client_recieve_header( axis2_http_client_t * client, const axutil_env_t * env) { + return axis2_http_client_receive_header(client, env); +} + +AXIS2_EXTERN int AXIS2_CALL +axis2_http_client_receive_header( + axis2_http_client_t * client, + const axutil_env_t * env) +{ int status_code = -1; axis2_http_status_line_t *status_line = NULL; axis2_char_t str_status_line[512]; @@ -549,8 +558,7 @@ axis2_http_client_recieve_header( port = axutil_url_get_port(client->url, env); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, - "client data stream null or socket error for host \ -%s and %d port", host, port); + "Client data stream null or socket error for host %s and %d port", host, port); AXIS2_HANDLE_ERROR(env, AXIS2_ERROR_HTTP_REQUEST_NOT_SENT, AXIS2_FAILURE); return -1; } @@ -797,8 +805,7 @@ axis2_http_client_connect_ssl_host( if(!tmp_stream) { AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, - "unable to create open socket for ssl host %s and %d \ -port", host, port); + "Unable to create socket for SSL host %s and %d port", host, port); return AXIS2_FAILURE; } @@ -991,4 +998,4 @@ axis2_http_client_reset( client->req_body = NULL; } return AXIS2_SUCCESS; -}
\ No newline at end of file +} |