Retrieve file size from web server

Posted by user326943 on Stack Overflow See other posts from Stack Overflow or by user326943
Published on 2010-04-30T15:15:19Z Indexed on 2010/04/30 15:17 UTC
Read the original article Hit count: 152

Filed under:
|

Looking for a way to retrieve a file size from a web server using cocoa/foundation. I know one can use NSURLconnection which will return NSURLResponse that contains the file size. Is there any other way to get the size. I'm looking for a synchronous way of doing it so when i do [myClass getsize] the size is returned.

Thanks

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c