Error Code: 502 Proxy Error. The data is invalid. (13)
IP Address: 84.233.1
Date: 17/03/2011 02:34:51 PM [GMT]
Source: web filter
This correlated with the following log event on the TMG server.
Failed Connection Attempt
The big problem I had is that this site "worked just fine" from a direct Internet connection.
I used HTTP watch to trace the connection to the site. While goign through the STREAM view I noticed the following:
- The page was hosted on a Red Hat Apache server. (Just because it is at the top of the header)
- Content Encoding was GZIP
When scrolling further down the stream data I saw something strange - after the gzip data segment (green) there was "clear text" again. (Amber) I had not seen this before.
This did not look right, maybe that is what TMG was on about. I check that the server would send me an uncompressed version of the page with some TamperData request header manipulation, and thankfully it did.
Then I moved onto the TMG to exclude the site form requesting compressed data.
- Create a computer or computer set object.
- Open the HTTP compression setting
- Add the computer object to the exceptions
That finally fixed the problem loading that page.
GZIP implemented correctly is a fantastic thing - Do it badly and it cause cause issues, That is why I prefer to do all my compression on a reverse proxy TMG.
Just goes to show you TMG was correct in dropping non standard or compliant data. Browsers were far more forgiving, this is good for compatibility but bad for standard enforcement. So if you are getting this or a similar issue requesting data from a site, look at the site closely and see if you can spot something.