mod_perl
view release on metacpan or search on metacpan
Apache-Test/lib/Apache/TestBuild.pm view on Meta::CPAN
use subs qw(system chdir
info warning);
use Config;
use File::Spec::Functions;
use File::Path ();
use Cwd ();
use constant DRYRUN => 0;
my @min_modules = qw(access auth log-config env mime setenvif
mime autoindex dir alias);
my %shared_modules = (
min => join(' ', @min_modules),
);
my %configs = (
all => {
'apache-1.3' => [],
'httpd-2.0' => enable20(qw(modules=all proxy)),
Apache-Test/lib/Apache/TestClient.pm view on Meta::CPAN
unless ($s) {
warn "cannot connect to $hostport: $!";
return undef;
}
if ($content) {
$headers{'Content-Length'} ||= length $content;
$headers{'Content-Type'} ||= 'application/x-www-form-urlencoded';
}
#for modules/setenvif
$headers{'User-Agent'} ||= 'libwww-perl/0.00';
my $request = join $CRLF,
"$method $url HTTP/1.0",
(map { "$_: $headers{$_}" } keys %headers);
$request .= $CRLF;
for (my $i = 0; $i < scalar @real_headers; $i += 2) {
$request .= "$real_headers[$i]: $real_headers[$i+1]$CRLF";
src/modules/perl/modperl_env.c view on Meta::CPAN
/* populate %ENV and r->subprocess_env with per-directory
* PerlSetEnv entries.
*
* note that per-server PerlSetEnv entries, as well as
* PerlPassEnv entries (which are only per-server), are added
* to %ENV and r->subprocess_env via modperl_env_configure_request_srv
*/
if (!apr_is_empty_table(dcfg->SetEnv)) {
apr_table_t *setenv_copy;
/* add per-directory PerlSetEnv entries to %ENV
* collisions with per-server PerlSetEnv entries are
* resolved via the nature of a Perl hash
*/
MP_TRACE_e(MP_FUNC, "\t[0x%lx/%s]"
"\n\t@ENV{keys dcfg->SetEnv} = values dcfg->SetEnv;",
modperl_interp_address(aTHX),
modperl_server_desc(r->server, r->pool));
modperl_env_table_populate(aTHX_ dcfg->SetEnv);
/* make sure the entries are in the subprocess_env table as well.
* we need to use apr_table_overlap (not apr_table_overlay) because
* r->subprocess_env might have per-server PerlSetEnv entries in it
* and using apr_table_overlay would generate duplicate entries.
* in order to use apr_table_overlap, though, we need to copy the
* the dcfg table so that pool requirements are satisfied */
setenv_copy = apr_table_copy(r->pool, dcfg->SetEnv);
apr_table_overlap(r->subprocess_env, setenv_copy, APR_OVERLAP_TABLES_SET);
}
MpReqPERL_SET_ENV_DIR_On(rcfg);
}
void modperl_env_configure_request_srv(pTHX_ request_rec *r)
{
MP_dRCFG;
MP_dSCFG(r->server);
( run in 0.390 second using v1.01-cache-2.11-cpan-a1d94b6210f )