HTML-Mason-ApacheHandler2
view release on metacpan or search on metacpan
eg/httpd-mason-simple.conf view on Meta::CPAN
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
AddHandler type-map var
#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem.
eg/httpd-mason.conf view on Meta::CPAN
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
AddHandler type-map var
#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem.
scripts/stress.pl view on Meta::CPAN
use warnings;
use LWP::UserAgent;
my $uri = $ARGV[0] || usage();
my $limit = $ARGV[1] || 0;
usage() unless $limit =~ /^\d+$/;
$uri = 'http://' . $uri unless $uri =~ m#^http://#;
my $ua = LWP::UserAgent->new(env_proxy => 1,
keep_alive => 1,
timeout => 30,
);
my $count = 0;
while( 1 ) {
last if $limit && $count >= $limit;
my $response = $ua->get($uri);
unless( $response->is_success ) {
print STDERR "\nError while getting ", $response->request->uri,
" -- ", $response->status_line, "\nAborting";
( run in 1.658 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )