开发者

iOS code for downloading a file using HTTP only if it was changed

I a开发者_JS百科m looking for a complete piece of code for iOS for downloading a file in background using HTTP but only if the file was updated on the server.

Mainly in order to do that you have to send a request and set if-modified-since for it.

Shortly, I want to obtain the same functionality as wget --timestamp <url>


You can set the if-modified-since header field (or any other header field) in a NSMutableURLRequest object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜