lgil
asked on
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?
'... 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?
ASKER
Hi Legalsrl, thank you for your interest.
It is hosted in the Internet
It is hosted in the Internet
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
They'll know how to do it, but if they need any help, we can tag it on this question
Cheers
Si
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
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
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
ASKER
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.
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.
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
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
ASKER
Thank you Simon. I will use the Request Attention button.
Is the destination server situated on the network or is it hosted on the internet ?
Cheers
Si