curl-library
RE: cURL fails to POST to NTLM protected IIS6 server using ANY authentication with post < 1024bytes
Date: Wed, 1 Aug 2007 00:06:51 +0200 (CEST)
On Tue, 31 Jul 2007, Greg Morse wrote:
> therefore I consider the resolution to this issue to be:
Thanks a lot for your detailed mails, your server and your test source.
I don't see how your suggested fix is the best medicine for this problem
though. I did a different (and easier!) fix that makes your test program run
fine for me. I'd be happy to hear what you think about it:
--- lib/http.c 30 Jul 2007 21:41:12 -0000 1.328
+++ lib/http.c 31 Jul 2007 22:07:49 -0000
@@ -921,10 +921,12 @@
/* this data _may_ contain binary stuff */
Curl_debug(conn->data, CURLINFO_HEADER_OUT, ptr,
(size_t)(amount-included_body_bytes), conn);
- if (included_body_bytes)
+ if (included_body_bytes) {
Curl_debug(conn->data, CURLINFO_DATA_OUT,
ptr+amount-included_body_bytes,
(size_t)included_body_bytes, conn);
+ http->writebytecount = included_body_bytes;
+ }
}
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-08-01