Is there a way to get the size of a remote file http://my_url/my_file.txt without downloading the file?
To cover the HTTP/2 request, the function provided here https://stackoverflow.com/a/2602624/2380767 needs to be changed a bit:
300 && $status <= 308) ) { $result = $content_length; } } return $result; } ?>