开发者

Get FileModification/Creation time of a file on a webserver

Howdy, I'm currentyl new to Java and Android but I would like to write an App which checks a webserver on a particular file. If that file is NEWER than the locally saved file it should go ahead and download the file.

Now I've alread开发者_开发百科y got the download in place .. but I don't know how I can check the file on the webserver. Any help would be appreciated! :)


Look into sending your request with an If-Modified-Since header. This makes your request conditional based on the resource you are requesting. If it hasn't been updated since that time, it will return a 304.

See Section 14.25 of this page for more details.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜