Check if a web page exists then download the update.
Check out the progress bar download in my sig.
Examples of downloading the file, and checking if files exist is in there.