Steps
- Run curl --version and choose a budget from the trusted release information.
- For a public HTTPS file use curl --fail --location --max-filesize 104857600 --output package.part "https://example.com/package.apk", replacing the URL and budget.
- Record the exit code and size. Use the temporary file only after completion and verification; a partial file is not an installer.
Interpretation
An exceeded limit produces curl exit code 63. Review the budget and content rather than declaring the VPN down.
Limits and next steps
Before curl 8.4.0, unknown-size transfers are not constrained by this option. A size cap is not a substitute for signature or integrity checks.