Skip to content

Support resume for mainframe ZIP downloads #3

@asimtahir-karakus-kd

Description

@asimtahir-karakus-kd

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions