cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: cURL fails to POST to NTLM protected IIS6 server using ANY authentication with post < 1024bytes

From: Greg Morse <snatch_65_at_hotmail.com>
Date: Wed, 1 Aug 2007 17:35:23 -0700

Sorry - I noticed the fix is wrong. Need to check this in again.
 
Only works when verbose mode set. Code you added should be outside of if(conn->data->set.verbose):
 
File:http.cFunction: add_buffer_send
Offending lines:
    if(conn->data->set.verbose) { /* 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) { Curl_debug(conn->data, CURLINFO_DATA_OUT, ptr+amount-included_body_bytes, (size_t)included_body_bytes, conn); /* since we sent a piece of the body here, up the byte counter for it accordingly */ http->writebytecount = included_body_bytes; } }
Change to:
    if(conn->data->set.verbose) { /* 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) { Curl_debug(conn->data, CURLINFO_DATA_OUT, ptr+amount-included_body_bytes, (size_t)included_body_bytes, conn); /* since we sent a piece of the body here, up the byte counter for it accordingly */ } } if (included_body_bytes) http->writebytecount = included_body_bytes;
 
-Greg
_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one place! Find it!
http://maps.live.com/?wip=69&FORM=MGAC01
Received on 2007-08-02