CInternetSession difficulty
-
Is there any way when using CInternetSession OpenURL to tell if the file requested is not found. I am using the following: CInternetSession session; CStdioFile *remote = session.OpenURL(url,1,INTERNET_FLAG_TRANSFER_BINARY|INTERNET_FLAG_RELOAD); No matter what I send as a url if it is a valid address the remote file is opens with no errors as far as I can tell. Problem is in place of the file I want to download what I am getting is the default page sent by the server when a file cannot be found. Since I am replacing a critical application file this can be big troubles. Is there a solution or a better way to get files in the background. Thanks Richard If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man. - Pudd'nhead Wilson's Calendar