httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: Setting cookies and user agent using Apache C API
Date Sat, 04 May 2013 13:11:46 GMT
On Sat, May 4, 2013 at 1:38 AM, Sindhi Sindhi <sindhi.for@gmail.com> wrote:
> Hi,
>
> I get "ap_filter_t* filterChain" as an input parameter to my Apache C++
> module. I can see that I can get the cookies and user agent from the below
> calls.
>
> request_rec *currRequest = filterChain->r;
> const char* userAgent = apr_table_get(currRequest->headers_in,
> "User-Agent");
> const char *cookieVal = apr_table_get(currRequest->headers_in, "cookie");
>
> Ho can I set cookies and user agent back in the headers using Apache API?
>

Have a look at mod_headers.

Mime
View raw message