diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-12-05 21:20:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-12-05 21:20:14 +0000 |
commit | 7d3ea12b625fd07d9d41a68e7cc2cd5322247584 (patch) | |
tree | 7e8a964e4e70c54fd847390a0ad280524afb2c76 /lib | |
parent | 59dc9085d15fc069798eef92e41e4c72838ed990 (diff) |
Spacen Jasset reported a problem with doing POST (with data read with a
callback) over a proxy when NTLM is used as auth with the proxy. The bug
also concerned Digest and was limited to using callback only. Spacen worked
with us to provide a useful patch. I added the test case 547 and 548 to
verify two variations of POST over proxy with NTLM.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c index 7cfb23f3c..70418af96 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2687,9 +2687,11 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) /* set the upload size to the progress meter */ Curl_pgrsSetUploadSize(data, postsize?postsize:-1); - /* set the pointer to mark that we will send the post body using - the read callback */ - http->postdata = (char *)&http->postdata; + /* set the pointer to mark that we will send the post body using the + read callback, but only if we're not in authenticate + negotiation */ + if(!conn->bits.authneg) + http->postdata = (char *)&http->postdata; } } /* issue the request */ |