Hi,

I am trying to filter POST messages seen in Squid that do not follow my application specifications. When a POST is observed that misuses the header, I would like to send a a custom error page to the host which would be displayed in the browser. I've added the appropriate enumeration for the error page as well as the error page definition within Squid. I then added code to the clientProcessRequest function in client_side.cc to detect the erroneous POST, and then followed the convention of generating reply context, set reply to error, etc. Using Wireshark, I was able to verify that the error page was indeed sent to the host, however, IE just displayed a default error page, not showing the custom error page that I generated.

Interestingly if i change my code to react to GET instead of POST, my custom error page DOES display properly. So I'm wondering if it is an issue with the POST protocol. Perhaps IE is not expecting HTML in response to a POST?

Has anyone encountered or tried such a thing?

Thanks,
Mike

Reply via email to