We help IT Professionals succeed at work.

How to avoid or react to McAfee Web Gateway redirecting to page that show download progress

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?
Comment
Watch Question

Simon EarlSenior Consultant

Commented:
Hiya,
Is the destination server situated on the network or is it hosted on the internet ?
Cheers
Si

Author

Commented:
Hi Legalsrl, thank you for your interest.

It is hosted in the Internet
Simon EarlSenior Consultant

Commented:
OK, you will need to get the administrators of the Web Gateway to add an exclusion for your site as the Web Gateway is probably configured in transparent mode or explicit proxy and this will be filtering all http/https requests.

They'll know how to do it, but if they need any help, we can tag it on this question

Cheers
Si

Author

Commented:
Hi Legalsrl:

Thank you for your prompt reply. I just realized that I was not clear enough in my question. The Gateway in on Client's Network. I always assumed that if I approached my client and ask them to help me with this they might eventually do what you suggest.

What I am really looking for is, can I do something programatically on my side so that I do not have to ask my clients to do something on their side.
Senior Consultant
Commented:
Hi,
No you won't be able to do anything programmatically as all of the clients entire network HTTP and HTTPS traffic goes through the appliance, so either way, all the HTTP and HTTPS traffic will always go through the appliance and therefore the change needs to be made to the clients site.
Cheers
Simon

Author

Commented:
Hi Simon,

Thanks again for your time. If I am understanding correctly the text quoted in my question from the received HTML page, a browser should be able to display a 'Progress' page and then make the file contents available when the scan is over. If this interpretation is correct, I would expect to be able to do something similar from my program.

Please let me know what you think, and thank you again for devoting your time to help me.
Simon EarlSenior Consultant

Commented:
Hiya

yes, that's correct......the gateway will either "trickle" the download and then present the file, or it might present a progress bar with a download button when it's completed and scanned

Cheers
Simon

Author

Commented:
Hi Simon,

I was out of the office and had not noticed that you had a comment. You realize that what I really need is guidance on how to avoid this problem from my VB .NET code, as stated in the last part of my question:

Any thoughts on how to avoid or recover from this problem and get the expected file contents or results of my remoting API call?

I would like to reward the time that you have spent helping me but we are not close to having a solution.

Thanks again.
Simon EarlSenior Consultant

Commented:
Hi,
OK, I'm not a programmer, so I'm not going to be able to help any further on this thread, you might like to hit the Request Attention button and see if you can get a Moderator to expand the zones
Cheers
Simon

Author

Commented:
Thank you Simon. I will use the Request Attention button.