Last post Mar 01, 2018 06:56 AM by Nasser Malik
Mar 01, 2018 06:43 AM|sadin|LINK
I need to know size of file from a given url.
In fact I want to get url of a file(anywhere on the internet) and then get size of it.
I tried with this code but I takes long time to get size of large files, is there any better way?
Mar 01, 2018 06:56 AM|Nasser Malik|LINK
If requested server returns Content-Length on header then you can get it. Otherwise you have to download and check the size.