cURL / Mailing Lists / curl-library / Single Mail


Re: HTTP PUT, and the progress meter

From: Daniel Stenberg <>
Date: Wed, 9 Jun 2010 08:30:39 +0200 (CEST)

On Tue, 8 Jun 2010, Nick Jensen wrote:

> So if the 'ulnow' property is not a reliable source of upload progress

It is a reliable source of upload progress. It is NOT a reliable source for
info on upload success.

> is there some better way I can calculate it?

Not to my knowledge. You just need to accept that uploads can start but still

> Waiting for the response headers seems like the only way to determine a
> success or failure, but at that point the upload is either completely done
> or it failed, and the progress function gets called either way...

Yes. HTTP is asynchronous that way. One way that was designed into HTTP to
avoid this is the "Expect: 100-continue" request header, but unfortunately
servers mess this one up more often than not.

List admin:
Received on 2010-06-09