Http Query (C#)

  • Thread starter Thread starter Maqsood Ahmed
  • Start date Start date
M

Maqsood Ahmed

When I retrieve webpages via the httpclient, sometimes changes are
made to it.
For eg: due to certain enabled options in internet explorer, some
extra lines
like the following are added to html files:
++++++++++++++++++++++++++++++++++++++++++++
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
++++++++++++++++++++++++++++++++++++++++++++

I need to somehow set options via c# that would disable this
behaviour.

Reason: when I retrieve files without a version number, my application
makes MD5 hashes to see if files need to be updated, however if the
original files gets modified while retrieving from server, the MD5
check will be faulty.
 
Maqsood said:
When I retrieve webpages via the httpclient, sometimes changes are
made to it.
For eg: due to certain enabled options in internet explorer, some
extra lines
like the following are added to html files:

I've never heard of that. Can you point out what options that would be?

++++++++++++++++++++++++++++++++++++++++++++
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
++++++++++++++++++++++++++++++++++++++++++++

I need to somehow set options via c# that would disable this
behaviour.

Reason: when I retrieve files without a version number, my application
makes MD5 hashes to see if files need to be updated, however if the
original files gets modified while retrieving from server, the MD5
check will be faulty.

I'm not sure what version number you're referring to, but out-of-date checks
are built into the HTTP protocol and are not prone to side effects of client
scripting.

Cheers,
 
Back
Top