first, the http server should return a Content-Length header. this usually means that the file is a static file, if it is a dynamic file, for example the result of php or jsp, you cannot make such a split.
then you can use the http Range header when requesting, this header tells the server which part of the file should be returned. see the python document on how to set and parse an HTTP header.
to do this, if the part size is 100 thousand, you first ask with the range: 0-1000000 100k will receive the first part, and in its length of the response it will report the file size, then start some stream with different Range, it will work
source share