Re: [squid-users] Redirect program needing auth

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Sat, 05 Sep 2009 08:35:47 +0200

fre 2009-09-04 klockan 15:23 -0500 skrev Bob T. Terminal:
> I am working on a project which requires the redirect program to know
> the Authorization information for the http headers. I was wondering if
> anyone could tell me if the ClientHttpRequest referenced in the
> redirectStart function (in redirect.cc) has access to the http headers
> and what call am i missing to get access to the Authorization token

Yes. http->request is the request.

 const char *auth_header = http->request->header.get_str(HDR_AUTHORIZATION)

but are you really sure what you are doing should be done as a url rewriter and not an acl?

Regards
Henrik
Received on Sat Sep 05 2009 - 06:35:55 MDT

This archive was generated by hypermail 2.2.0 : Sat Sep 05 2009 - 12:00:02 MDT