Is it possible with webclient to get file info without downloading?  
Author Message
just david





PostPosted: .NET Framework Networking and Communication, Is it possible with webclient to get file info without downloading? Top

I'd like to be able to check the file modified date/time and decide whether to download it based on that information...

Or possibly file size...




.NET Development2  
 
 
just david





PostPosted: .NET Framework Networking and Communication, Is it possible with webclient to get file info without downloading? Top

guess not


 
 
Mariya Atanasova - MSFT





PostPosted: .NET Framework Networking and Communication, Is it possible with webclient to get file info without downloading? Top

If you want to have more control over the properties, use FtpWebRequest instead of WebClient. WebClient is just for quick upload/download (an by quick I mean fewer lines of code, not speed)

Here is the documetation for the class:

http://msdn2.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx

Mariya