[New-bugs-announce] [issue42643] http.server does not support HTTP range requests

Decorater report at bugs.python.org
Mon Dec 14 21:24:06 EST 2020


New submission from Decorater <seandhunt_7 at yahoo.com>:

I have issues with range requests on http.server module (ran from python -m http.server command)

When requesting files to download from an program written in C (which uses range requests to update an progress bar) it ignores this and simply forces download of the entire thing at once) which in turn on my program makes the progress bar never update to display the progress of the download to the user.

https://tools.ietf.org/id/draft-ietf-httpbis-p5-range-09.html#range.units

It is a part from HTTP/1.1, I think this would be something good to actually have to support partial requests (if they request an range in the header of their request), for directory listings (which can be used to download files from), it could be considered helpful it be able to request specific byte ranges inside of the files to download at a time to split up bandwidth to not overwhelm an file server.

----------
components: Library (Lib)
messages: 383028
nosy: Decorater
priority: normal
severity: normal
status: open
title: http.server does not support HTTP range requests
type: enhancement
versions: Python 3.10, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42643>
_______________________________________


More information about the New-bugs-announce mailing list