Task: Get Remote File Size Without Downloading
Task: Get Remote File Size Without Downloading: a task in Terminal-Lego-15k (Harbor dataset). Create a PHP script that retrieves the size of a remote file from a URL without downloading the entire file content. The script should use HTTP HEAD requests or other efficient methods to obtain the file…
The task
Create a PHP script that retrieves the size of a remote file from a URL without downloading the entire file content. The script should use HTTP HEAD requests or other efficient methods to obtain the file size information from the server's response headers.
Part of PrimeIntellect/Terminal-Lego-15k.