Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-19 Thread Moti Berger
Thank you very much, that really helped! On Mon, Jan 18, 2021 at 6:48 PM Alex Rousskov < rouss...@measurement-factory.com> wrote: > On 1/18/21 6:45 AM, Moti Berger wrote: > > > If the ICAP server sets 'Preview: 0' in the OPTIONS it means that when > > the ICAP client sends a request, it should no

Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-18 Thread Alex Rousskov
On 1/18/21 6:45 AM, Moti Berger wrote: > If the ICAP server sets 'Preview: 0' in the OPTIONS it means that when > the ICAP client sends a request, it should not contain the body. The above summary may mislead many readers. I would describe the protocol operation differently: * Preview in an OPTI

Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-18 Thread NgTech LTD
I assume that a null body is based on the logic that the icap client knows the progress and the icap details enough to only modify the headers. it should be tested. I tried to test it but im busy to test it right now. Eliezer On Mon, Jan 18, 2021, 13:46 Moti Berger wrote: > Hi > > If the ICAP s

Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-18 Thread Moti Berger
Hi If the ICAP server sets 'Preview: 0' in the OPTIONS it means that when the ICAP client sends a request, it should not contain the body. This is the REQMOD request: > F..n...DREQMOD icap://censor-req.proxy:14590/request ICAP/1.0 > Host: censor-req.proxy:14590 > Date: Mon, 18 Jan 2021 11:34:54 G

Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-18 Thread Eliezer Croitoru
ail: ngtech1...@gmail.com <mailto:ngtech1...@gmail.com> Zoom: Coming soon From: squid-users On Behalf Of Moti Berger Sent: Sunday, January 17, 2021 10:09 PM To: squid-users@lists.squid-cache.org Subject: [squid-users] Adding headers in ICAP server with no preview Hi I have a

Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-17 Thread Alex Rousskov
On 1/17/21 3:08 PM, Moti Berger wrote: > What should the ICAP response look like? The vast majority off ICAP responses containing an HTTP POST message will look like ICAP header + HTTP header + HTTP body. Please see RFC 3507 and its errata for examples of and discussion about those three component

[squid-users] Adding headers in ICAP server with no preview

2021-01-17 Thread Moti Berger
Hi I have an environment with squid version 5.0.4 with ICAP server adapting requests by adding an header. When I'm trying to send a POST request with a body I'm having an issue of a stuck connection. What should the ICAP response look like? What I do is to reply like this: > (dI./M..ICAP/1.0 200