surely you have used a download manager. they detect and show the length of the file without downloading it
I know i can do this:
import requests
resp = requests.get("https://Whereever.user.wants.com/THEFILE.zip")
print(f"your file has {resp.headers['content-length'] \ 1048576}.")
...
but get
downloads the content (THEFILE). so i can tell use the length after download.
how to do that before download in python?
Thanks for detailed-answer