Julian Williams wrote:
> Hi,
> I have written an Apache module that controls access depending on
> whether a token is present in the request - normally as an HTTP
> cookie. I have recently had to modify the module to include an input
> filter which will spot the token if included in the body of a POST
> request - the SOAP/xml call to a web service. This works OK.
>
> I also need to create some new headers that include user data
> extracted from the token. The objective is that the new headers are
> easily picked up as server variables in the application environment.
> My code uses calls to apr_table_set to create the headers e.g.
>
>       apr_table_set(r->subprocess_env, "HTTP_SAMS_USER", uid);
>   

Try :

apr_table_set(r->headers_in, "HTTP_SAMS_USER", uid);


in addition to the subprocess_env table set?  (Just in case you aren't
getting to a subprocess?)

Joe
-- 
Joseph Lewis <http://sharktooth.org/>
"Divide the fire, and you will sooner put it out." - Publius Syrus

Reply via email to