On Tue, 15 Apr 2014, David Warman wrote:

Absent that clarification, it seemed permissible to send zero to indicate unknown. On reflection, it's not clear why there would need to be a distinction between "unknown" and "unset", but I had previously assumed that was the purpose of the -1 initializer (I had noticed the initial value).

There is no distinction. Unset or unknown is the same: -1. The point being that a file can exist and have size 0, so it doesn't make sense to have any magic meaning for the value 0 when it comes to file sizes.

BTW, the new PROXYHEADER feature is good news. I have an example of exactly the problem that it fixes (another thing that has come to light after switching to SSL).

Excellent!

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to