summaryrefslogtreecommitdiffstats
path: root/src/core/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/transport')
-rw-r--r--src/core/transport/http/sender/libcurl/axis2_libcurl.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/transport/http/sender/libcurl/axis2_libcurl.c b/src/core/transport/http/sender/libcurl/axis2_libcurl.c
index 834e69b..5d68f17 100644
--- a/src/core/transport/http/sender/libcurl/axis2_libcurl.c
+++ b/src/core/transport/http/sender/libcurl/axis2_libcurl.c
@@ -441,12 +441,21 @@ axis2_libcurl_send(
else
buffer_size = output_stream_size;
{
- char tmp_buf[10];
+ /*
+ * Curl calculates the content-length automatically.
+ * This commented section is not only unnecessary,
+ * it interferes with authentication.
+ *
+ * NTLM, for example, will send an empty request
+ * first (no body) to get the auth challenge
+ * before resending with actual content.
+ */
+ /*char tmp_buf[10];
sprintf(tmp_buf, "%d", buffer_size);
tmp_strcat = axutil_stracat(env, content_len, tmp_buf);
headers = curl_slist_append(headers, tmp_strcat);
AXIS2_FREE(env->allocator, tmp_strcat);
- tmp_strcat = NULL;
+ tmp_strcat = NULL;*/
tmp_strcat = axutil_stracat(env, content, content_type);
headers = curl_slist_append(headers, tmp_strcat);