开发者

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

开发者 https://www.devze.com 2023-02-19 04:29 出处:网络
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.

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

精彩评论

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