cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PUT of empty file with multi-pass authentication fails

From: Jonathan Brown <jwbrown_at_adobe.com>
Date: Thu, 22 Mar 2012 15:32:57 -0700

> I'm using libcurl 7.24.0 to upload files to a server. The request hangs (or times out)
> if I try to PUT an empty file. I've set CURLOPT_HTTPAUTH to CURLAUTH_ANY and supplied
> a CURLOPT_USERPWD. Server auth using Digest succeeds for CURLOPT_INFILESIZE_LARGE > 0.
...
> Is this behavior a bug? Or is there some option or hook that I am missing?

I've verified that the problem does not occur (empty files are PUT successfully) without the authentication. But, of course, I need that.

Any suggestions on what is the least risky patch?
Thanks,
Jonathan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-22