ASNMTAP
view release on metacpan or search on metacpan
applications/tools/mysql/asnmtap-3.002.003-distributed_mysql-v5.0.x.sql view on Meta::CPAN
# ---------------------------------------------------------------------------------------------------------
# © Copyright 2003-2011 by Alex Peeters [alex.peeters@citap.be]
# ---------------------------------------------------------------------------------------------------------
# 2011/mm/dd, v3.002.003, asnmtap-3.002.003-distributed_mysql-v5.0.x.sql
# ---------------------------------------------------------------------------------------------------------
SET NAMES utf8;
SET SQL_MODE='';
create database if not exists `asnmtap`;
USE `asnmtap`;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
lib/ASNMTAP/Asnmtap/Plugins/SOAP.pm view on Meta::CPAN
# $service->transport->http_request->header( 'Authorization' => 'Basic '. MIME::Base64::encode ( 'USERNAME' .':'. 'PASSWORD', '' ) );
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$service->transport->agent( $browseragent );
$service->transport->timeout( $timeout );
use HTTP::Cookies;
$service->transport->cookie_jar( HTTP::Cookies->new ) if ( $cookies );
$service->transport->default_headers->push_header( 'Accept-Language' => "no, en" );
$service->transport->default_headers->push_header( 'Accept-Charset' => "iso-8859-1,*,utf-8" );
$service->transport->default_headers->push_header( 'Accept-Encoding' => "gzip, deflate" );
print "ASNMTAP::Asnmtap::Plugins::SOAP::get_soap_request: () -->\n" if ( $debug );
$$asnmtapInherited->setEndTime_and_getResponsTime ( $$asnmtapInherited->pluginValue ('endTime') );
my $som = (defined $params and $params ne '') ? (ref $params eq 'ARRAY' ? $service->call( $parms{method} => @$params ) : $service->call( $parms{method} => $params )) : $service->call( $parms{method} );
my $responseTime = $$asnmtapInherited->setEndTime_and_getResponsTime ( $$asnmtapInherited->pluginValue ('endTime') );
$$asnmtapInherited->appendPerformanceData ( "'". $parms{perfdataLabel} ."'=". $responseTime ."ms;;;;" );
print "ASNMTAP::Asnmtap::Plugins::SOAP::get_soap_request: () <->\n" if ( $debug );
lib/ASNMTAP/Asnmtap/Plugins/WebTransact.pm view on Meta::CPAN
$ua = LWP::UserAgent->new ( keep_alive => 1 );
} else {
$ua = LWP::UserAgent->new ( keep_alive => 0 );
}
$self->{ua} = $ua;
$ua->agent ( ${$self->{asnmtapInherited}}->browseragent () );
$ua->timeout ( ${$self->{asnmtapInherited}}->timeout () );
$ua->default_headers->push_header ( 'Accept-Language' => 'no, en' );
$ua->default_headers->push_header ( 'Accept-Charset' => 'iso-8859-1,*,utf-8' );
$ua->default_headers->push_header ( 'Accept-Encoding' => 'gzip, deflate' );
$ua->default_headers->push_header ( 'Keep-Alive' => ${$self->{asnmtapInherited}}->timeout () ) if ( $parms{keepAlive} );
$ua->default_headers->push_header ( 'Connection' => 'Keep-Alive' );
if ( defined $proxyServer ) {
$ua->default_headers->push_header ( 'Proxy-Connection' => 'Keep-Alive' );
# don't use $ua->proxy ( ['http', 'https', 'ftp'] => $proxyServer ); or $ua->proxy ( 'https' => undef ) ;
$ua->proxy ( ['http', 'ftp'] => $proxyServer );
plugins/tools/GrinderCaptureConverter.pl view on Meta::CPAN
use warnings;
use Getopt::Long;
use vars qw($opt_i $opt_o $opt_f $opt_h $opt_v $PROGNAME);
my $PROGNAME = "GrinderCaptureConverter.pl";
my $prgtext = "Grinder Capture Converter";
my $version = "1.19";
my $debug = 0;
my $infile;
my $outfile;
my $format;
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sub build_QS_fixed($);
sub output_webtransact();
sub output_list();
sub print_help();
sub print_usage();
sub print_revision();
plugins/tools/GrinderCaptureConverter.pl view on Meta::CPAN
"o=s" => \$opt_o, "output-file=s" => \$opt_o, # required
"f:s" => \$opt_f, "format:s" => \$opt_f, # optioneel
"v" => \$opt_v, "version" => \$opt_v, # required
"h" => \$opt_h, "help" => \$opt_h, # required
);
if ($opt_v) { print_revision(); exit(0); }
if ($opt_h) { print_help(); exit(0); }
if ($opt_i) { $infile = $opt_i; } else { print_revision(); print_usage(); print("$PROGNAME: No grinder input file specified!\n\n"); exit(0); }
if ($opt_o) { $outfile = $opt_o; } else { print_revision(); print_usage(); print("$PROGNAME: No output file specified!\n\n"); exit(0); }
if ($opt_f) { if ($opt_f eq "L" or $opt_f eq "W") { $format = $opt_f; } else { print_revision(); print_usage(); print("$PROGNAME: Wrong format specified!\n\n"); exit(0); } } else { $format = "W"; }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Bepalen van de directory
$infile =~ /^((?:.*)\/)/;
my $directory = (defined $1) ? $1 : '';
# Openen van de inputfile
open (INFILE, "<$infile") || die ("Could not open grinder input file");
# Inlezen van de inputfile
my @inArray = <INFILE>;
# Sluiten van de file
close (INFILE);
# Variabelen nodig voor de verwerking
my @urlArray;
my @postArray;
my @dataArray;
my $url;
plugins/tools/GrinderCaptureConverter.pl view on Meta::CPAN
output_webtransact();
} else {
output_list();
}
exit(0);
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sub output_webtransact() {
open (OUTFILE, ">$outfile") || die ("Could not open webtransact output file");
print OUTFILE "\@URLS = (\n";
for(my $c = 0, my $t = 1; $c < @urlArray; $c++) {
if (! ($urlArray[$c] =~ /(\.(gif|jpg|png|css|ico|js|bmp)|(robots\.txt))$/i) ) {
my($tUrl, $tParams) = split(/\?/, $urlArray[$c]);
my(undef, $tFilename) = $tUrl =~ m/(.*\/)(.*)$/;
my $Qs_fixed = '';
if (defined $tParams && $tParams ne '') {
my @tArray = split(/&/, $tParams);
plugins/tools/GrinderCaptureConverter.pl view on Meta::CPAN
sub PERLDecode {
my $theURL = $_[0];
$theURL =~ s|\@|\\@|g;
return $theURL;
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sub output_list() {
open (OUTFILE, ">$outfile") || die ("Could not open list output file");
for(my $c = 0; $c < @urlArray; $c++) {
if (! ($urlArray[$c] =~ /(\.(gif|jpg|png|css|ico|js|bmp)|(robots\.txt))$/i) ) {
my $tUrl = URLDecode($urlArray[$c]);
if($postArray[$c] eq "POST") {
if ( defined $dataArray[$c] and $dataArray[$c] ne '') {
print OUTFILE "$postArray[$c]" . " - " . $tUrl . ( ($tUrl =~ /\?/) ? '&' : '?' ) . URLDecode($dataArray[$c]) . "\n";
} else {
print OUTFILE "$postArray[$c]" . " - " . $tUrl . "\n";
( run in 0.655 second using v1.01-cache-2.11-cpan-4d50c553e7e )