?
=?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses=22?=
Hello.
If I just want to check whether a specific URL returns error (404, 403,
500...) or not, I do this:
HttpWebResponse oResponse = null;
try
{
oResponse = (HttpWebResponse)oRequest.GetResponse();
}
catch (WebException oException)
{
But examining the net traffic I have found out that, if the URL doesn't
return an error and corresponds to a big file (4 MB for instance), the
program is retreiving around 1 MB of data. I don't want my program to
generate this traffic, I only want to check if the URL is ok, so how can
I improve this?
Thanks in advance.
Andrew [ knocte ]
--
If I just want to check whether a specific URL returns error (404, 403,
500...) or not, I do this:
HttpWebResponse oResponse = null;
try
{
oResponse = (HttpWebResponse)oRequest.GetResponse();
}
catch (WebException oException)
{
But examining the net traffic I have found out that, if the URL doesn't
return an error and corresponds to a big file (4 MB for instance), the
program is retreiving around 1 MB of data. I don't want my program to
generate this traffic, I only want to check if the URL is ok, so how can
I improve this?
Thanks in advance.
Andrew [ knocte ]
--