Re: Redirector that reads HTTP header?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 14 Jun 2000 23:19:05 +0200

Squid cannot do this out of the box, but you should be able to do it
with a little coding. Best place to attack the problem is in
redirectStart I think.

The request headers are available in http->request->header, and is
accessible using the httpHeaderGet* functions.

If if is a new header not understood by Squid then you probably have to
add it to enums.h and HttpHeader.c to be able to access it.

For the implementation side you have two possible paths: Either you
build your redirection in the C code, or you extend the redirector
interface to pass the information you need.

--
Henrik Nordstrom
Squid hacker
Danny Kruitbosch wrote:
> 
> Hi,
> 
> I'm looking for a redirector that's able to read some properties out of
> the http header. Are there any?
> What I what to do is check if the header contains a LDAP dn and if it
> does then redirect it.
> This is for a reverse proxy (so my users are outside my LAN, on our
> extranet). I don't want to authenticate them, because we do this by
> using PKI. I just want to redirect them to our secure (PKI) site on the
> basis of their HTTP header properties.
> 
> Has anyone done something like this?
> 
> Best regards,
> 
> Danny Kruitbosch
> 
>     ---------------------------------------------------------------
> 
>                             Name: d.kruitbosch.vcf
>            Part 1.2         Type: text/x-vcard
>                         Encoding: 7bit
>                      Description: Kaart voor Danny Kruitbosch
Received on Wed Jun 14 2000 - 21:37:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:02 MST