Hi All,
How can I find the file size and other information for a file in an
internet site, without downloading the file???? or is it possible at
all???
Thanks.
Nicholas Paldino [.NET/C# MVP] - 28 Aug 2006 00:37 GMT
DBC User,
If this is a site where the file is exposed through HTTP, then you can
issue a request for the resource, but make the action HEAD. This will cause
just the headers to be returned, and you can look at the Content-Length
header.
If this is not HTTP, then it depends on the protcol that is used to get
the file.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi All,
>
[quoted text clipped - 3 lines]
>
> Thanks.
Prem Kumar - 28 Aug 2006 11:13 GMT
Hi
There is also some code here, which you can utilize
http://www.dotnet247.com/247reference/msgs/38/192523.aspx
I've also added this url, in case you may require.
http://msdn.microsoft.com/msdnmag/issues/06/09/WebDownloads/default.aspx
Prem
> Hi All,
>
[quoted text clipped - 3 lines]
>
> Thanks.