0

When download big files, I usually do it from code with HTTP "Range requests" requests.get('http://example.com/bigfile.zip', header={"Range": "bytes=1000000000-2000000000"}) when I need to download starting at offset 1 GB, for example if the first GB has already been downloaded but the download has been interrupted.

But in some cases, we need to be authenticated (using a login page that doesn't work outside of a real browser) to be allowed to download the file http://example.com/bigfile.zip.

Question: let's say I did the login in Firefox or Chrome. How to trigger a HTTP Range Request to download http://example.com/bigfile.zip from browser, starting at offset 1 GB?

Preferably, I'd like to do this directly from Chrome or Firefox, using DevTools or Javascript console, and without an extension, if possible.

Basj
  • 36,818
  • 81
  • 313
  • 561

0 Answers0