cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Mar 2012 23:38:01 +0100 (CET)

On Mon, 19 Mar 2012, Jonathan Brown wrote:

> 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?

It certainly looks like it might be a bug. I'll try to write up a test case
that repeats it and see what I can do to fix it.

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