Re: Setting cookies and user agent using Apache C API

2013-05-04 Thread Eric Covener
On Sat, May 4, 2013 at 1:38 AM, Sindhi Sindhi 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_

Setting cookies and user agent using Apache C API

2013-05-03 Thread Sindhi Sindhi
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 *cookie