iphone - Get remote file size via HTTP without downloading said file -
Any way to get the size of any (remote, http) file without actually downloading?
All other similar questions seem to revolve around grabbing expected contact log
in the NSURLResponse
object didReiveiveResponse:
But I do not want to download the file, I want to know how big this is.
Try to make head requests, it only returns headers with content-length headers.
~ $ curl-I http://google.com/ HTTP/ 1.1 301 Permanently Moved Location: http://www.google.com/ Content-Length: 21 9 ...
Comments
Post a Comment