I'm using the PHP built-in server to serve static files.
php -S localhost:8000
I have however noticed that the Range
header gets ignored - instead of serving the requested range, the entire resource is served.
I am not that well versed in PHP, the reason I'm using this server is because I'm looking for an alternative to Python's built-in server (python3 -m http.server
) which does not support range requests (either?) that is built-in into macOS. It seems to me like Python and PHP servers are the two available options. Knowing Python's doesn't support HTTP range requests, is there any way to use config.ini
or some other mechanism to enable HTTP range requests in PHP's?
I looked at php -h
but it doesn't talk about the -S
option much beyond the basic syntax. Not sure if there are more options that can be used with it so that's why I assume config.ini
is the only possible way.