ios - Downloading file conditionally with timestamp, like curl -z -


i'm looking equivalent of curl -z some_date some_url using nsurlrequest of afnetworking. want download file url according it's timestamp on server.

(or curl -z local.file remote.file, automatically downloads remote.file if last modified later local.file was)

any ideas?

afnetworking uses nsurlrequest make requests; behavior same regardless of choose.

set nsurlrequest's cachepolicy property nsurlrequestuseprotocolcachepolicy , behavior done according cache-control headers sent down server. in cases, adding if-modified-since header request.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -