Re: [squid-users] external_acl_type and %{Header} [Squid 2.6]

From: Valter Douglas Lisbôa Jr. <douglas_at_trenix.com.br>
Date: Wed, 27 Aug 2008 15:43:06 -0300

Em Wednesday 27 August 2008 12:29:31 Valter Douglas Lisbôa Jr. escreveu:
> Em Wednesday 27 August 2008 09:47:09 Amos Jeffries escreveu:
> > John Doe wrote:
> > > ----- Original Message ----
> > >
> > >> From: Valter Douglas Lisbôa Jr. <douglas_at_trenix.com.br>
> > >> To: squid-users_at_squid-cache.org
> > >> Sent: Tuesday, August 26, 2008 11:10:13 PM
> > >> Subject: [squid-users] external_acl_type and %{Header} [Squid 2.6]
> > >>
> > >> I have a issue that I can find a consistent documentation to resolv.
> > >> The squid manual describe the %{Header} parameter of the
> > >> external_acl_type in squid.conf. But no mater what header I put, it
> > >> always return a '-' to my external helper.
> > >>
> > >> So, Does the squid have any chance to give me the %{Content-Type}
> > >> value of the header?
> > >>
> > >> I'm trying hard to find a way to give to the external program this
> > >> information, but I dind't find any hint on google.
> > >
> > > At least %{Referer} works for me...
> > > But I also get a '-' for %{Content-Type}
> > > But my firefox does no put any Content-Type header in its queries...
> > > Are you sure there is one in your queries...?
>
> Yes, i am. I debug the headers with Firebug.
>
> > This type of thing is probably best tested with the squidclient tool.
> > Where you can explicity add headers to what it sends.
>
> I'll try some more times with squidclient and post the results.
>
> > Amos
>
> Thanks

OK, I find my error. I looking for headers only on reply not on request.

It's works fine and are detecting the Content-Type send by browsers and others
programs.

Until here all is fine but I need the reply headers too. I put the acl in
http_reply_access to verify the reply now, and it appears to not verifyng the
server header. Any clues?

-- 
Valter Douglas Lisbôa Jr.
Sócio-Diretor
Trenix - IT Solutions
"Nossas Idéias, suas Soluções!"
www.trenix.com.br
contato_at_trenix.com.br
Received on Wed Aug 27 2008 - 18:43:23 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 28 2008 - 12:00:05 MDT