[squid-users] Squid proxy removing Transfer-Encoding header
Alex Rousskov
rousskov at measurement-factory.com
Fri Jan 1 17:58:21 UTC 2016
On 12/31/2015 08:52 AM, aashima madaan wrote:
> So in my case, figured out when squid receives request header
> "Connection: close" , it strips of Transfer Encoding header from
> response. But if it does not receive Connection header it wil send back
> TE header.
You are either asking irrelevant questions or you are not providing
enough context to receive relevant answers. Try focusing on the
higher-level problem first, and use this mailing list to guide you from
that problem to the right set of the lower-level symptoms as needed.
> So I am left with 2 questions now.
> - Why does squid behave like that?
> - Second, so in my case HA Proxy is sending those headers to squid.
> Since Connection is also hop by hop header , why is HAProxy adding that
> header to request headers.
The short answer to both questions is "this is how HTTP or HTTP agents
work". This answer does not help you, of course. You need to either
study HTTP RFCs (a lot of work!) or ask a higher-level question to get
useful answers. What problem are you trying to fix?
Good luck,
Alex.
> On Wed, Dec 30, 2015 at 4:36 PM, Alex Rousskov wrote:
>
> On 12/30/2015 02:24 PM, Aashima wrote:
>
> > So it is like client -> Squid -> APP and return
> > If App return Transfer-Encoding header to Squid, Squid removes
> that response
> > header and forwards rest to Client.
> >
> > Am not getting why it is removing that header ? Couldnt find any posts
> > also on any discussion group or blog.
>
> Transfer-Encoding is a standard HTTP hop-by-hop header. Hop-by-hop
> headers are meant for the immediate recipient (Squid in your case),
> rather than the final or "end" recipient (Client in your case). Squid
> must not forward hop-by-hop headers (but may add them as needed, which
> may look like forwarding to an outside observer).
>
> If you describe the actual problem you are having (in addition to this
> technical detail), somebody on this list might be able to guide you
> towards a solution.
>
>
> Good luck,
>
> Alex.
>
>
>
>
> --
> /Aashima Madaan/
> /
> /
More information about the squid-users
mailing list