Suppose i wish to pause the download, and start it again. Can we know before hand whether the link is resume-able. I mean is this info available with the headers.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you wand to know that before starting the download, you can send a HEAD request and check if the field “Accept-Ranges: bytes” is present in the header.
QNetworkAccessManagerdoes contain some code to handle resuming when the network session is interrupted, but unfortunately it is not part of the public API.