Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix wrong CURLINFO_CONTENT_LENGTH_DOWNLOAD result with redirect. #59

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

ulion commented Feb 25, 2013

when the target file redirected to a result url which has no content-length, call getinfo for CURLINFO_CONTENT_LENGTH_DOWNLOAD will get the previous 302 page's body content-length, this commit fixed it.

test link: http://mp3.live.tv-radio.com/francemusique/all/francemusiquehautdebit.mp3

Owner

bagder commented Mar 30, 2013

I wrote up a test case for bug #1198 here => https://sourceforge.net/p/curl/bugs/1198/ but it fails to repeat the problem and instead it seems to show that libcurl already works... Please continue this thread in the bug tracker.

@bagder bagder closed this Mar 30, 2013

Contributor

ulion commented Mar 31, 2013

you are right, it's a fixed bug: http://sourceforge.net/p/curl/bugs/1102/
sorry for bother.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment