• Post Reply Bookmark Topic Watch Topic
  • New Topic

Get content of URL and preserve it's modified date  RSS feed

 
Miha Kurent
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to connect to an URL and check if there is a new version of some XML schema there. But I can't figure out how to get the last modified date from the actual file on the server.

Anyone done this?
 
Miha Kurent
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yay for me I figured it out.

I used the URLConnection class. Then I called URLConnection.getLastModified().
 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch and well done sorting it and telling us how it was done.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!