Re: [squid-users] Sending json error messages

2016-02-01 Thread Eliezer Croitoru
Why another web-server? You mean that it's similar to a web-server or an actual web-server? In any case you are running a process on the squid machine, you can run an ICAP service that will push the page as a template into the client response. I can understand if you are invested in the extern

Re: [squid-users] Sending json error messages

2016-02-01 Thread Sreenath BH
I believe ICAP or eCAP would be better suited for our needs. But having invested into the external_acl_type helper way of working, I am exploring what best can be done. I hope there is a simple way to do this. Also, ICAP is essentialy another web-server (unless I use eCAP) that I would like to av

Re: [squid-users] Sending json error messages

2016-02-01 Thread Eliezer Croitoru
Hey, I do not have an answer to your question but I wanted to ask a question. If you would be able to send the whole page with the data directly to the client would it be OK for your use case? It's just that based on your external helper logic it might be possible to use ICAP or eCAP instead of

[squid-users] Sending json error messages

2016-02-01 Thread Sreenath BH
Hi All, We want to send error message in json format when external acl deny's a request. Even if we send a json formatted message (using message= key value pair) in external helper, the final output is still html. We have a custom error file in share/error/templates directory, and we use %o to pi