getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
I'm not able to get *any* variables out from the apache server environment. As you might be able to imagine, this is extremely frustrating, and inhibits my ability to do anything of use with mod_perl. My basic technique has been: my $uri = $r-uri; return unless $r-is_main();

Re: getting *any* variables out of the server environment

2003-06-09 Thread Perrin Harkins
On Mon, 2003-06-09 at 14:29, Ryan Muldoon wrote: I'm not able to get *any* variables out from the apache server environment. Did you try the normal $ENV{'VARIABLE'} approach? - Perrin

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
I tried that as well (and just re-tried). My understanding is that the %ENV hash only gets updated in the fixup stage, so the mod_ssl environment variables can't be accessed that way. Thanks for the suggestion though! --Ryan On Mon, 2003-06-09 at 13:41, Perrin Harkins wrote: On Mon,

RE: getting *any* variables out of the server environment

2003-06-09 Thread Marc M. Adkins
Message- From: Ryan Muldoon [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:30 AM To: [EMAIL PROTECTED] Subject: getting *any* variables out of the server environment I'm not able to get *any* variables out from the apache server environment. As you might be able to imagine

RE: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
Muldoon [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 11:30 AM To: [EMAIL PROTECTED] Subject: getting *any* variables out of the server environment I'm not able to get *any* variables out from the apache server environment. As you might be able to imagine, this is extremely

Re: getting *any* variables out of the server environment

2003-06-09 Thread Perrin Harkins
On Mon, 2003-06-09 at 14:49, Ryan Muldoon wrote: I tried that as well (and just re-tried). My understanding is that the %ENV hash only gets updated in the fixup stage, so the mod_ssl environment variables can't be accessed that way. Thanks for the suggestion though! Okay. And you're certain

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
Geoffrey, Thanks for the explanation. Unfortunately, I think I am still a little unclear as to how to proceed. If I understand you correctly, my first method is completely wrongheaded. (I tried this because it is how the Writing Apache Modules with Perl and C does it. p.327) So it

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
PerlSetEnv works fine. I can't, however, put PerlPassEnv inside either a Location or Directory block, if that makes any difference. Apache says it is a configuration error to do so (though PerlSetEnv works fine). I've tried every way that I can think of to do $r-subprocess_env('VARIABLE'),

Re: getting *any* variables out of the server environment

2003-06-09 Thread Issac Goldstand
] To: Geoffrey Young [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, June 09, 2003 10:13 PM Subject: Re: getting *any* variables out of the server environment Geoffrey, Thanks for the explanation. Unfortunately, I think I am still a little unclear as to how to proceed. If I understand you correctly

Re: getting *any* variables out of the server environment

2003-06-09 Thread Randy Kobes
On Mon, 9 Jun 2003, Ryan Muldoon wrote: Geoffrey, Thanks for the explanation. Unfortunately, I think I am still a little unclear as to how to proceed. If I understand you correctly, my first method is completely wrongheaded. (I tried this because it is how the Writing Apache

Re: getting *any* variables out of the server environment

2003-06-09 Thread Geoffrey Young
Ryan Muldoon wrote: Geoffrey, Thanks for the explanation. Unfortunately, I think I am still a little unclear as to how to proceed. If I understand you correctly, my first method is completely wrongheaded. :) (I tried this because it is how the Writing Apache Modules with Perl and C does

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
I didn't. But I just set that, and it didn't seem to make a difference --Ryan On Mon, 2003-06-09 at 14:16, Randy Kobes wrote: On Mon, 9 Jun 2003, Ryan Muldoon wrote: Geoffrey, Thanks for the explanation. Unfortunately, I think I am still a little unclear as to how to

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
[EMAIL PROTECTED] To: Geoffrey Young [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, June 09, 2003 10:13 PM Subject: Re: getting *any* variables out of the server environment Geoffrey, Thanks for the explanation. Unfortunately, I think I am still a little unclear as to how

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
From what I understand, what you outline *should* work. It just doesn't for me for some reason. I really appreciate everyone's help though. (And as an aside - I learned how to program in Perl from your books - many thanks) --Ryan On Mon, 2003-06-09 at 14:23, Randal L. Schwartz wrote:

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
On Mon, 2003-06-09 at 14:35, Geoffrey Young wrote: Ryan Muldoon wrote: Geoffrey, Thanks for the explanation. Unfortunately, I think I am still a little unclear as to how to proceed. If I understand you correctly, my first method is completely wrongheaded. :) (I tried

Re: getting *any* variables out of the server environment

2003-06-09 Thread Perrin Harkins
On Mon, 2003-06-09 at 15:35, Geoffrey Young wrote: no, I wasn't saying that :) subprocess_env() from the main request is the right way to go. I was just trying to let you know that it has nothing to do with %ENV really. I wouldn't go that far. %ENV does get populated with that stuff, just

Re: getting *any* variables out of the server environment

2003-06-09 Thread Geoffrey Young
Ok, removed. Thank you very much for the in-depth replies. It is very useful. Unfortunately any variable-reading continues to elude me. But I really appreciate all the help! well, it sounds like you are having a larger problem that just mod_ssl-based variables. since you mention you're

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
Actually, upon flushing my browser cache and checking again, I can in fact read the MOD_PERL environment variable just fine. But still no luck on any mod_ssl related variables. --Ryan

Re: getting *any* variables out of the server environment

2003-06-09 Thread Perrin Harkins
[ Please keep it on the list. ] On Mon, 2003-06-09 at 16:12, Ryan Muldoon wrote: Ryan, can you post a more complete code example? - Perrin Here it is: package Apache::AuthNx509; use strict; use Apache::Constants qw(:common); use Text::ParseWords qw(quotewords); use Apache::Log

Re: getting *any* variables out of the server environment

2003-06-09 Thread Ryan Muldoon
On Mon, 2003-06-09 at 15:24, Perrin Harkins wrote: [ Please keep it on the list. ] Sorry about that! On Mon, 2003-06-09 at 16:12, Ryan Muldoon wrote: Ryan, can you post a more complete code example? - Perrin Here it is: package Apache::AuthNx509; use strict; use