Get Remote file size without downloading file

Is there a way to get the size of a remote file http://my_url/my_file.txt without downloading the file? Solution: Found something about thi...

Is there a way to get the size of a remote file http://my_url/my_file.txt without downloading the file?

Solution:


Found something about this :
Here's
the best way (that I've found) to get the size of a remote file. Note
that HEAD requests don't get the actual body of the request, they just
retrieve the headers. So making a HEAD request to a resource that is
100MB will take the same

Hot in Week

Popular

Archive

item