Re: [squid-users] Squid proxy removing Transfer-Encoding header

2016-01-01 Thread Alex Rousskov
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/
> /
> /

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Squid proxy removing Transfer-Encoding header

2015-12-31 Thread Aashima
Alex Rousskov  measurement-factory.com> writes:

> 
> 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.
> 
> ___
> squid-users mailing list
> squid-users  lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
> 


Hey Alex,

Thanks for responding so quickly on that yesterday. This really helped me in 
reaching to one point for figuring out the real problem.

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. 

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.

Thanks
Aashima




___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] Squid proxy removing Transfer-Encoding header

2015-12-30 Thread Aashima
Hey all,

I have an application in front of which I am using Squid proxy. 
Suppose application name is APP
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.

Thank you
Aashima

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Squid proxy removing Transfer-Encoding header

2015-12-30 Thread Alex Rousskov
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.

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users