Discussion Locked

Checking web-site for updates

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Many products now check the author's web-site (if the user is on-line) and inform the user if there is an update to the currently running package. I would like to do this in my products. What's the best/easiest way to achieve this in VB6?
Bob

2 replies

by jay eckles

I would do a couple of things. First I would try sending an HTTP HEAD request to the web server and then inspecting the Last-Modified header in the response. If for some reason there is no Last-Modified header in th response, you could do a subsequent GET request and compare the document returned with a locally cached copy.

Good luck.

Jay

by jay eckles

Another thing you could do is send a GET request and add an If-Modified-Since header, including the date of the last time you checked the site as teh value of that header. If it has changed since that date, you'll receive the data. If it has not changed, you'll get a 304 response.

This discussion is closed to new replies.