Re: How to *add* a cookie in module?

2012-06-18 Thread ohaya
oh...@cox.net wrote: > > oh...@cox.net wrote: > > Hi, > > > > This is a followup to an earlier post/question, "How to access client > > certificate PEM and incoming request headers in a module?". > > > > As before, I'm starting with mod_headers.c, and then tweaking it, partly > >

Re: How to *add* a cookie in module?

2012-06-18 Thread ohaya
oh...@cox.net wrote: > Hi, > > This is a followup to an earlier post/question, "How to access client > certificate PEM and incoming request headers in a module?". > > As before, I'm starting with mod_headers.c, and then tweaking it, partly > experimenting with modules, and partly for a p

How to *add* a cookie in module?

2012-06-18 Thread ohaya
Hi, This is a followup to an earlier post/question, "How to access client certificate PEM and incoming request headers in a module?". As before, I'm starting with mod_headers.c, and then tweaking it, partly experimenting with modules, and partly for a project that I'm working on (eventually).

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-18 Thread ohaya
Hi, Also, I configured the Apache for client-authenticated SSL, and hit the https:///test URL, and the dump_envvars() output only one additional variable: In ap_headers_insert_output_filter: About to call dump_envvars... In iterate_function: [UNIQUE_ID] => [T993fkjX4QkAAHanMQwA] In iterate_

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-18 Thread ohaya
Hi, I found some snippets that I used to make some dump_requests and dump_envvars functions: /* START DUMP CODE * Adapted from: http://thomas.eibner.dk/apache/table.html */ int iterate_func(void *req, const char *key, const char *value) { int stat; char *line; request_rec *r = (req

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-18 Thread ohaya
Hi Sorin and Ben, I found a list of variables somewhere, and just (probably unluckily) picked REMOTE_URI, just to see if retrieving any variable would work (an experiment). Is there a list of environment variables that WOULD return something other than null for that call? Thanks, Jim B

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-18 Thread Ben Noordhuis
On Mon, Jun 18, 2012 at 8:53 AM, wrote: > I added a call to header_request_env_var(r, "REMOTE_URI"), just to see what > it got (running Apache in single-process mode): > > printf("REMOTE_URI=[%s]\n", header_request_env_var(r, "REMOTE_URI") ); > > Then I pointed a browser to http:///test, where /

Re: How to access client certificate PEM and incoming request headers in a module?

2012-06-18 Thread Sorin Manolache
On 2012-06-18 08:53, oh...@cox.net wrote: Hi, I'll look at ssl_var_lookup a little later, but I'm still messing around with mod_headers.c, tweaking it to understand how THAT is working :)... I added a call to header_request_env_var(r, "REMOTE_URI"), just to see what it got (running Apache in