cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: reg resume download

From: Richard Atterer <richard_at_2006.atterer.net>
Date: Fri, 5 Jan 2007 11:36:34 +0100

On Thu, Jan 04, 2007 at 11:37:43AM +0530, kuriakose wrote:
> One solution is to get the modification time of file in server and compare
> with the creation time of file partially downloaded.

In addition to this, check whether the "Etag" header of the two requests
matches. However, not all servers send this.

There's no 100% perfect way to achieve this. Apache theoretically supports
the generation of a "Content-MD5" header, but nobody enables it because it
implies a serious performance hit.

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key: 888354F7
  | \/¯|  http://atterer.net  |  08A9 7B7D 3D13 3EF2 3D25  D157 79E6 F6DC 8883 54F7
  ¯ '` ¯
Received on 2007-01-05