HTTP File Download??
-
:confused::confused:Hi All, I have an application to download three XML files. Each one of them can be 1 MB or more. that makes my all of the system resources to be taken by it to download the file. I am downloading them from my server. I want to do something like this that i can compare the files local and remote one and if there are any changes i can just copy the changes to the local file. That will save my downloading whole files again and again even if they are same. can i do that. Please help..Any help or pointers are thoroughly appreciated....Thanks a lot in advance.. Regards, Himanshu
-
:confused::confused:Hi All, I have an application to download three XML files. Each one of them can be 1 MB or more. that makes my all of the system resources to be taken by it to download the file. I am downloading them from my server. I want to do something like this that i can compare the files local and remote one and if there are any changes i can just copy the changes to the local file. That will save my downloading whole files again and again even if they are same. can i do that. Please help..Any help or pointers are thoroughly appreciated....Thanks a lot in advance.. Regards, Himanshu
-
:confused::confused:Hi All, I have an application to download three XML files. Each one of them can be 1 MB or more. that makes my all of the system resources to be taken by it to download the file. I am downloading them from my server. I want to do something like this that i can compare the files local and remote one and if there are any changes i can just copy the changes to the local file. That will save my downloading whole files again and again even if they are same. can i do that. Please help..Any help or pointers are thoroughly appreciated....Thanks a lot in advance.. Regards, Himanshu
use the "If-modified-since:" header in your request for that file and send the GMT time of the last update date for the file you are requesting. The HTTP server will compare the time that you send with the time of the file and only send back the file on the server if it is newer. IF your file is newer on your machine, you will get a status code 304 indicating that your file is newer.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life! -
use the "If-modified-since:" header in your request for that file and send the GMT time of the last update date for the file you are requesting. The HTTP server will compare the time that you send with the time of the file and only send back the file on the server if it is newer. IF your file is newer on your machine, you will get a status code 304 indicating that your file is newer.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!:confused:Hi Paul, Thanks for the information..But i havent done anything like this before..I would highly appreciate if u can send me any example...of how to do that..Please..I need it urgently...Thanks a lot in advance.. regards, Himanshu