Dumb question, but how do I check if a file exists on a web site. I am using NSURLConnection with my NSURLRequest and an NSMutableData object to store what comes back in the didReceiveData delegate method. In the connectionDidFinishingLoading method I then save the NSMutableData object to the file system. All good. Except if the file does not exist at the website, my code still runs, gets data and saves a file.
How can I check the file is there before I make download request?
Regards
Dave