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

wants to merge 1 commit into


None yet
2 participants

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


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


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