cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problem with file:// URLs and zero-length files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 31 May 2007 12:59:34 +0200 (CEST)

On Thu, 31 May 2007, BuraphaLinux Server wrote:

> Curl fails to transfer 0-length files when using file:// URLs Do I need some
> magic switch to say "even if empty create the destination file" ?

curl in general is very restrictive with creating zero-byte files. This is
something that requires some attention in the code as there's no current magic
option to enable this to "just work". Feel free to help us out here!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-05-31