view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
else {
print
"*** Dependencies will be installed the next time you type '$make'.\n";
}
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
inc/Module/AutoInstall.pm view on Meta::CPAN
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
view all matches for this distribution
view release on metacpan or search on metacpan
0.04 Mon Aug 3 20:30:49 PDT 2009
- Set Requeting-Client to the request object
0.03 Mon Aug 3 16:10:04 PDT 2009
- Include eg/proxy.pl example (Daisuke Murase)
- Changed default label to use SHA1 to be non-guessable
0.02 Mon Aug 3 04:34:09 PDT 2009
- Changed default label naming scheme to avoid possible RFC errors
- Supported returning AnyEvent condvar to do non-blocking HTTP handling
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) {
require Config;
print
"*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n";
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
inc/Module/AutoInstall.pm view on Meta::CPAN
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
else {
print
"*** Dependencies will be installed the next time you type '$make'.\n";
}
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
inc/Module/AutoInstall.pm view on Meta::CPAN
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
view all matches for this distribution
view release on metacpan or search on metacpan
- Migrate to Module::Build::Prereqs::FromCPANfile.
0.04 2014-04-13
- No change to the code.
- establish_psgi() method is no longer beta.
The API is fine, I guess.
0.03 2013-11-10
- No change to the code.
- Now the cpanfile requires AnyEvent::WebSocket::Client 0.20, which includes
some important new features and bug fixes.
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) {
require Config;
print
"*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n";
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
inc/Module/AutoInstall.pm view on Meta::CPAN
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
view all matches for this distribution
view release on metacpan or search on metacpan
#ifndef IVSIZE
# ifdef LONGSIZE
# define IVSIZE LONGSIZE
# else
# define IVSIZE 4 /* A bold guess, but the best we can make. */
# endif
#endif
#ifndef UVTYPE
# define UVTYPE unsigned IVTYPE
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
#ifndef IVSIZE
# ifdef LONGSIZE
# define IVSIZE LONGSIZE
# else
# define IVSIZE 4 /* A bold guess, but the best we can make. */
# endif
#endif
#ifndef UVTYPE
# define UVTYPE unsigned IVTYPE
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/ZeroMQ/Subscribe.pm view on Meta::CPAN
$self->_call_callback( $self->on_read, $item, @rest );
}
sub _call_callback { # i wonder what this does
my ($self, $cb, $item, @rest) = @_;
return $cb->($self, $item, @rest); # who would have guessed!
}
sub push_read {
my ($self, $cb) = @_;
weaken $self;
view all matches for this distribution
view release on metacpan or search on metacpan
default 10, this number specifies the numbers of times per SessionTimeout
that timed out sessions are garbage collected. The bigger the number,
the slower your system, but the more precise Session_OnEnd's will be
run from global.asa, which occur when a timed out session is cleaned up,
and the better able to withstand Session guessing hacking attempts.
The lower the number, the faster a normal system will run.
The defaults of 20 minutes for SessionTimeout and 10 times for
StateManager, has dead Sessions being cleaned up every 2 minutes.
applications. The $Session state is stored across HTTP connections,
in database files in the Global or StateDir directories, and will
persist across web server restarts.
The user session is referenced by a 128 bit / 32 byte MD5 hex hashed cookie,
and can be considered secure from session id guessing, or session hijacking.
When a hacker fails to guess a session, the system times out for a
second, and with 2**128 (3.4e38) keys to guess, a hacker will not be
guessing an id any time soon.
If an incoming cookie matches a timed out or non-existent session,
a new session is created with the incoming id. If the id matches a
currently active session, the session is tied to it and returned.
This is also similar to the Microsoft ASP implementation.
a script dropped from 12.5 hits/sec on my WinNT box
to 11.7 hits per second for 1K of buffered output.
The difference is .007 of my PII300's processing power
per second.
For 10K of output then, my guess is that this speed
of script, would be slowed to 6.8 hits per second.
This kind of performance hit would also slow a
script running at 40 hits per second on a UNIX box
to 31 hits/sec for 1K, and to 11 hits/sec for 10K parsed.
$Session id's are tracked through the use of cookies.
Security
--------
Timeouts any attempt to use a session id that doesn't already
exist. Should stop hackers, since there is no wire speed guessing
cookies.
=head1 LICENSE
Copyright (c) 1998-2018, Josh Chamas
view all matches for this distribution
view release on metacpan or search on metacpan
t/httpd.conf-dist view on Meta::CPAN
# same client on the same connection.
#
KeepAliveTimeout 15
#
# Server-pool size regulation. Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
view all matches for this distribution
view release on metacpan or search on metacpan
absolute number. If the next image would take it past this "invisible
line", a new row is started.
=item NumberOfColumns
Instead of using DefaultBrowserWidth and a guess at the number of
pixels, NumberOfColumns can be set to the maximum number of columns in
a table. The default is 0 (which causes DefaultBrowserWidth to be
used instead).
=item BodyArgs
view all matches for this distribution
view release on metacpan or search on metacpan
Client/Client.pm view on Meta::CPAN
my $send_data = '<frozen>' . $digest . $data . '</frozen>';
my $content_length = length($send_data);
my $uri = $self->{_requests}->{$index}->{uri};
my $host = $self->{_requests}->{$index}->{server};
#I'm guessing that octet-stream is the correct mime type for this sort of thing.
print {$self->{_requests}->{$index}->{sock}} <<"EOF";
POST $uri HTTP/1.0
Accept: application/octet-stream
Accept: */*
Host: $host
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/AppSamurai.pm view on Meta::CPAN
# NAME - Name of header or argument to pull in
#
# The name match is case insensitive, but strict: Only the exact names
# will be used to ensure a consistent key text source. MAKE SURE TO USE
# PER-CLIENT UNIQUE VALUES! The less random the key text source is, the
# easier it can be guessed/hacked. (Once again: Do not use the custom
# key text source feature if you can avoid it!)
sub FetchKeysource {
my ($self, $r) = @_;
my $auth_name = ($r->auth_name()) || (die("FetchKeysource(): No auth name defined!\n"));
my @srcs = $r->dir_config->get("${auth_name}Keysource");
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) {
require Config;
print
"*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n";
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
inc/Module/AutoInstall.pm view on Meta::CPAN
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
view all matches for this distribution
view release on metacpan or search on metacpan
generic_reg_auth_scheme.txt view on Meta::CPAN
# dunno what this is.
DefaultTarget partial or full URL
You also need this to get people to log in (although I'm not exactly sure
why; I guess it's so that login() gets called, but why can't we check for
credentials and log them in at the same point that we redirect them off to
the login form?):
<Location /LOGIN>
AuthType Apache::AuthCookieDBI
view all matches for this distribution
view release on metacpan or search on metacpan
generic_reg_auth_scheme.txt view on Meta::CPAN
# dunno what this is.
DefaultTarget partial or full URL
You also need this to get people to log in (although I'm not exactly sure
why; I guess it's so that login() gets called, but why can't we check for
credentials and log them in at the same point that we redirect them off to
the login form?):
<Location /LOGIN>
AuthType Apache::AuthCookieDBI
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/AuthCookieNTLM.pm view on Meta::CPAN
changes on the fly!
=head2 Not setting cookies
IE doesn't seem to alert you (if you've turned prompt on
for cookies). We guess it's because its from the trusted site.
Also check your using the right domain, as can be
seen when you turn debug on.
=head2 access to /test failed in error log - but it works
view all matches for this distribution
view release on metacpan or search on metacpan
AuthCookieURL.pm view on Meta::CPAN
example is when a request is made for a directory without a trailing slash and Apache
issues a redirect. (Actually, AuthCookieURL tries to detect this case and rewrite the URL
before Apache redirects.) I wish I knew a better way to fixup Location: headers in
redirects without sub-requesting every request. There's no way to catch a CGI script
or module that might issue a Location: header or REDIRECT.
I guess that's left for Apache 2.0 when all output can be filtered.
=head1 REQUIRED
mod_perl 1.24, Apache::Cookie
view all matches for this distribution
view release on metacpan or search on metacpan
inc/ExtUtils/AutoInstall.pm view on Meta::CPAN
_check_lock(); # check for $UnderCPAN
if (@Missing and not ($CheckOnly or $UnderCPAN)) {
require Config;
print "*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n";
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n" if eval '$>';
}
print "*** $class configuration finished.\n";
chdir $cwd;
inc/ExtUtils/AutoInstall.pm view on Meta::CPAN
_load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath(Cwd::cwd());
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) {
require Config;
print
"*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n";
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
inc/Module/AutoInstall.pm view on Meta::CPAN
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
view all matches for this distribution
view release on metacpan or search on metacpan
Compress.pm view on Meta::CPAN
my $how_decide = $r->dir_config('CompressDecision');
if (!defined($how_decide) || lc($how_decide) eq 'header') {
return +($r->header_in('Accept-Encoding')||'') =~ /gzip/;
} elsif (lc($how_decide) eq 'user-agent') {
return guess_by_user_agent($r->header_in('User-Agent'));
}
die "Unrecognized value '$how_decide' specified for CompressDecision";
}
sub guess_by_user_agent {
# This comes from Andreas' Apache::GzipChain. It's very out of
# date, though, I'd like it if someone sent me a better regex.
my $ua = shift;
return $ua =~ m{
Compress.pm view on Meta::CPAN
Browsers that don't request gzipped data will receive regular
noncompressed data.
Apparently some older browsers (and maybe even some newer ones)
actually support gzip encoding, but don't send the C<Accept-Encoding>
header. If you want to try to guess which browsers these are and
encode the content anyway, you can set the C<CompressDecision>
variable to C<User-Agent>. The default C<CompressDecision> value is
C<Header>, which means it will only look at the incoming
C<Accept-Encoding> header.
Note that the browser-guessing is currently using a regular expression
that I don't think is very good, but I don't know what user agents to
support and which not to. Please send me information if you have any,
especially in the form of a patch. =)
This module is compatibile with Apache::Filter, so you can compress
view all matches for this distribution
view release on metacpan or search on metacpan
t/httpd02.conf view on Meta::CPAN
# same client on the same connection.
#
KeepAliveTimeout 15
#
# Server-pool size regulation. Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
view all matches for this distribution
view release on metacpan or search on metacpan
bin/webstat_mail.pl view on Meta::CPAN
# my $host = $conf{host} ? "and host=".$dbh->quote($conf{host}) : "";
# my $sth = $dbh->prepare("select count(server),urlpath,referer from requests where referer not like ")
# select count(server) as hits ,urlpath,referer from requests where referer not like CONCAT('http://', server, '%') order by hits desc limit 10 ;
# THIS worked, I guess...
#my $sqlcommand = qq[select count(server) as hits ,urlpath,referer,server from requests where \
# (referer like 'http://%' or referer = '') and not (referer like CONCAT('http://', server, '%') \
# or referer like CONCAT('http://www.hip.dk/%') or referer like CONCAT('http://www.hilleroed-posten.dk/%') ) \
# and server='www.hillerod-posten.dk' group by referer,server order by hits desc limit 10];
view all matches for this distribution
view release on metacpan or search on metacpan
server side cache directory and value of the Expires header in days,
respectively.
- Deletes retrieved files after itself.
- Beginnings of a better test suite.
- Just run pod2text on the module to create README, as opposed to not
having a README I guess.
0.4 Thu Aug 17 15:57:30 PDT 2000
- Changed list of values syntax from 1,2,3... to [1,2,3]. Supports
arrays for all GD::Graph options as well as hashes, urls and undef,
view all matches for this distribution
view release on metacpan or search on metacpan
my $r = $self->{REQUEST};
# Set protocol.
my $hop = $response->protocol;
# Oops. No protocol. Try to guess from request.
unless(defined $hop) {
$hop = (uc(Apache::URI->parse($r, $response->request->url)->scheme)
. '/unknown');
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/GuessCharset.pm view on Meta::CPAN
! -e $r->finfo or
-d _ or
!(my $chunk = read_chunk($r));
my @suspects = $r->dir_config->get('GuessCharsetSuspects');
my $enc = guess_encoding($chunk, @suspects);
unless (ref $enc) {
warn "Couldn't guess encoding: $enc" if $DEBUG;
return DECLINED;
}
my $iana = iana_charset_name($enc->name);
my $charset = lc($Prefered_MIME{$iana} || $iana); # lowercased
lib/Apache/GuessCharset.pm view on Meta::CPAN
1;
__END__
=head1 NAME
Apache::GuessCharset - adds HTTP charset by guessing file's encoding
=head1 SYNOPSIS
SetHandler perl-script
PerlFixupHandler +Apache::GuessCharset
# how many bytes to read for guessing (default 512)
PerlSetVar GuessCharsetBufferSize 1024
# list of encoding suspects
PerlSetVar GuessCharsetSuspects euc-jp
PerlAddVar GuessCharsetSuspects shiftjis
PerlAddVar GuessCharsetSuspects 7bit-jis
=head1 DESCRIPTION
Apache::GuessCharset is an Apache fix-up handler which adds HTTP
charset attribute by automaticaly guessing text files' encodings via
Encode::Guess.
=head1 CONFIGURATION
This module uses following configuration variables.
lib/Apache/GuessCharset.pm view on Meta::CPAN
L<Encode::Guess> for details.
=item GuessCharsetBufferSize
specifies how many bytes for this module to read from source file, to
properly guess encodings. default is 512.
=back
=head1 AUTHOR
view all matches for this distribution
view release on metacpan or search on metacpan
#ifndef IVSIZE
# ifdef LONGSIZE
# define IVSIZE LONGSIZE
# else
# define IVSIZE 4 /* A bold guess, but the best we can make. */
# endif
#endif
#ifndef UVTYPE
# define UVTYPE unsigned IVTYPE
#endif
view all matches for this distribution
view release on metacpan or search on metacpan
Language/DBI.pm view on Meta::CPAN
=head1 SYNOPSIS
<Location /under/language/control/>
PerlSetVar Language::DBI::Datasource DBI:Pg:dbname=database;host=database.host
PerlSetVar Language::DBI::Username webserver
PerlSetVar Language::DBI::Password unguessable
PerlSetVar Language::DBI::TableName language [default]
Language::DBI::TableKey key [column for the key]
Language::DBI::TableLang lang [column for the lang]
Language::DBI::TableValue value [column for the value]
LanguageHandler Apache::Language::DBI
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/LogRegex.pm view on Meta::CPAN
The field names of the hash are derived from the log file format. Thus if
the format is '%a %t \"%r\" %s %b %T \"%{Referer}i\" ...' then the keys of
the hash will be %a, %t, %r, %s, %b, %T and %{Referer}i.
Should these key names be unusable, as I guess they probably are, then subclass
and provide an override rename_this_name() method that can rename the keys
before they are added in the array of field names.
This module supports variable spacing between elements that are
surrounded by quotes, so if you have more than one space between those
view all matches for this distribution