summaryrefslogtreecommitdiffstats
path: root/src/core/transport/http/sender/http_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/transport/http/sender/http_client.c')
-rw-r--r--src/core/transport/http/sender/http_client.c17
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
+}