Posted By:
Mazhar_Patel
Posted On:
Thursday, May 16, 2002 10:08 AM
I have built an application which downloads given URL page and search the page for some new contents. To minimize the process and data transfer rate ,i used MIME header of given URL ,in which I checked for Last-Modified Date and Content Length fields and if there is any changes then only application downloads it. I have used HttpURLConnection ,in which I used setRequestMethod("HEAD") to get MIME Header of URL ,but the problems is not each URL return Content-Length or Last-ModifiedDate in their MIME Header ,so Is their any method through which I could get solve thid problem . I want each MIME header should have Content-Length and Last-ModifiedDate field ,so that I could optimize my application process .
More>>
I have built an application which downloads given URL page and search the page for some new contents.
To minimize the process and data transfer rate ,i used MIME header of given URL ,in which I checked for Last-Modified Date and Content Length fields and if there is any changes then only application downloads it.
I have used HttpURLConnection ,in which I used setRequestMethod("HEAD") to get MIME Header of URL ,but the problems is not each URL return Content-Length or Last-ModifiedDate in their MIME Header ,so Is their any method through which I could get solve thid problem .
I want each MIME header should have Content-Length and Last-ModifiedDate field ,so that I could optimize my application process
.
thanks
Mazhar Patel
<<Less