You need to set:
webRequest.Method = "HEAD";
This way the server will respond with the header information only (no content). This is also useful to check if the server accepts certain operations (i.e. compressed data etc.).
You need to set:
webRequest.Method = "HEAD";
This way the server will respond with the header information only (no content). This is also useful to check if the server accepts certain operations (i.e. compressed data etc.).