Description
Implement HTTP 206 Partial Content support to enable resumable downloads for the mainframe ZIP file. If a download is interrupted, the next attempt will continue from where it left off instead of starting from the beginning.
Problem
Currently, if the mainframe ZIP download is interrupted (network timeout, user cancel, process crash), the entire file must be re-downloaded from the beginning on the next attempt. This wastes bandwidth and time, especially for large files.
Solution
Implement HTTP Range request support with the following features:
- Detects partial downloads by checking file size
- Sends HTTP
Range header to request only remaining bytes
- Appends to existing file instead of overwriting
- Verifies server support with HTTP 206 status code
- Falls back to fresh download if server doesn't support ranges
- Shows resume status in console output
- Maintains accurate progress bar including previously downloaded data
Description
Implement HTTP 206 Partial Content support to enable resumable downloads for the mainframe ZIP file. If a download is interrupted, the next attempt will continue from where it left off instead of starting from the beginning.
Problem
Currently, if the mainframe ZIP download is interrupted (network timeout, user cancel, process crash), the entire file must be re-downloaded from the beginning on the next attempt. This wastes bandwidth and time, especially for large files.
Solution
Implement HTTP Range request support with the following features:
Rangeheader to request only remaining bytes