I have a .NET program that downloads files from a server using an HttpWebRequest object. In a particular client's network, once in a while the result of the download is not the file contents but an HTML page that contains this text:
'... If you opened this file and can see this text, then you've probably tried to download a file using the 'save target as' option in the context menu when right clicking the object. Since McAfee Web Gateway is used for virus scanning your browser is redirected to a page that will show the download progress, and by chosing the 'save target as' option you were saving this progress page. To avoid this situation please use a simple click with the left mouse button to download the object. This will correctly redirect your browser to display the download progress and allow you to save the desired object...'
A similar situation happens with results of API calls using .NET Remoting with HTTP.
Any thoughts on how to avoid or recover from this problem and get the expected file contents or results of my remoting API call?