cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3370895 ] curl will reuse old Content-Length if none received

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 18 Jul 2011 23:45:03 -0500

Bugs item #3370895, was opened at 2011-07-18 23:45
Message generated for change (Tracker Item Submitted) made by raineth
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3370895&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ben Winslow (raineth)
Assigned to: Daniel Stenberg (bagder)
Summary: curl will reuse old Content-Length if none received

Initial Comment:
curl 7.21.7

When an easy handle is used to download an URI which has no Content-Length header (or equivalent) after downloading an URI which does, the value from the previous transfer is reused and returned by CURLINFO_CONTENT_LENGTH_DOWNLOAD. This is because the progress flags (used to determine whether such a header was received) are not reset between transfers. The quick fix I used is attached.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3370895&group_id=976
Received on 2011-07-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET