web file properties
-
hi, I'm making a simple download application. How do I get information about the file before I download it such as its size and name (without all the http information and such)? Also, in many download managers there is the option to download the rest of the file later, how is this done, I'm not asking for the rediculous amount of code it would take, but could you point me in the right direction? Thanks, Stephen
-
hi, I'm making a simple download application. How do I get information about the file before I download it such as its size and name (without all the http information and such)? Also, in many download managers there is the option to download the rest of the file later, how is this done, I'm not asking for the rediculous amount of code it would take, but could you point me in the right direction? Thanks, Stephen
Well, it is all done using the HTTP headers. One tells you the Content-Length, other tells you the Content-Type, etc. And wneh you make an HTTP request, using another HTTP header (don't remember the exact name) you can tell the offset from which you want to receive tha data. That's it. Just find e good HTTP reference and you'll be OK. Cheers ;)
-
hi, I'm making a simple download application. How do I get information about the file before I download it such as its size and name (without all the http information and such)? Also, in many download managers there is the option to download the rest of the file later, how is this done, I'm not asking for the rediculous amount of code it would take, but could you point me in the right direction? Thanks, Stephen
-
hi, I'm making a simple download application. How do I get information about the file before I download it such as its size and name (without all the http information and such)? Also, in many download managers there is the option to download the rest of the file later, how is this done, I'm not asking for the rediculous amount of code it would take, but could you point me in the right direction? Thanks, Stephen
Using C#, there's FileInfo class that can be instanciated. It gives all the informaion of a file, including size and date created, ect. For the download resume, there is a code at http://www.csharphelp.com/archives/archive9.html[^] that would give some insight of how to do it. ==== Lei Ming 2004 ===== ====================