Re: ICAP REQMOD handling of 200 Ok response

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 19 Jan 2011 16:11:55 -0700

On 01/12/2011 06:13 PM, Henrik Nordström wrote:
> ons 2011-01-12 klockan 13:17 +0100 skrev sichent:
>
>> 1. 200 OK + Adapted request, hoping that Squid would transfer the
>> remainder of the request to ICAP server, which in turn resends the data
>> back to Squid (pipelining)?
>>
>> 2. First send 100 OK Continue and then do the 1st step.
>
> IF you want the rest of the request body then you need to answer with
> 100 Continue, followed by the reqmod response.
>
> If you respond directly with a reqmod response then my understanding of
> the RFC is that the remainder of the request body is then not sent to
> the ICAP server and the ICAP server is expected to produce the complete
> message without further input.

Yes, 100 Continue is required after Preview if and only if your ICAP
service wants to see the rest of the message.

Please note that Squid should be able to handle an early ICAP response:
Your ICAP server does not need to wait for the entire message to be
transmitted before responding with ICAP 200 OK (or any other response).

Cheers,

Alex.
Received on Wed Jan 19 2011 - 23:12:21 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 20 2011 - 12:00:04 MST