Tim Moores wrote:If you go back to my 2nd post, you'll find that I mentioned casting the connection object to another class - did that make sense? The method to get the response code is called (no surprise there) getResponseCode.
By just these 2 lines I can get hold of the response code;
But, an AIR page always returns 200 and the site doesn't support the ifModifiedSince concept.
So, every time I would get a status of 200 even if the page has not been modified. Correct ? (Please correct me If I am wrong here)
Hence, looking for a solution as how to exactly know if the site supports ifModifiedSince standard as in my code above I am setting the ifModifiedSince to 24hrs earlier and would run the script every 24 hrs.
Please if anyone can give some tweak to my code above with a working example using any site as you wish to. Or may be a sample code as you wish with a working example on a webpage where we can
get some kind of notification or output if any change in the page from last 24hrs or anyway you propose.
Am just beginning here with
java :-) so please consider me to learn a bit slower.
Please let me know, if I need to take a different approach to get this done ?
Appreciate all your help here!!
Regards.