Bugs item #3510057, was opened at 2012-03-22 05:01
Message generated for change (Comment added) made by mike-php-net
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3510057&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: http
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Wallner (mike-php-net)
Assigned to: Daniel Stenberg (bagder)
Summary: Curl_follow should reset progress' size_dl
Initial Comment:
Curl_follow does reset progress times on transfer.c:1927, but not the progress' sizes, so when a redirect occurs and the size_dl of the new URL is not known, the progress callback will receive the previous transfer's size_dl as dltotal.
----------------------------------------------------------------------
>Comment By: Michael Wallner (mike-php-net)
Date: 2012-03-22 23:21
Message:
Sorry for the line wraps... http://pastie.org/3652781
----------------------------------------------------------------------
Comment By: Michael Wallner (mike-php-net)
Date: 2012-03-22 23:20
Message:
Sure, downloaded 5000% of google.at:
$ curl -L http://google.com >/dev/null
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 219 100 219 0 0 998 0 --:--:-- --:--:-- --:--:--
2406
100 218 100 218 0 0 507 0 --:--:-- --:--:-- --:--:--
507
5108 218 5108 11137 0 0 17038 0 --:--:-- --:--:-- --:--:--
17038
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Date: 2012-03-22 15:26
Message:
Ah. Any chance you can help us produce a recipe/test case that shows this
happening?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3510057&group_id=976
Received on 2012-03-23