App-MonM
view release on metacpan or search on metacpan
Enabling write debug information to syslog or user log file.
Do not confuse the debug logging from regular logging to a file monm.log.
Regular logging allows you to store information in monm.log on the progress of the processes
module, whereas debug logging for debugging of the internal components
of the module.
To control the level of debugging see parameter LogEnable and LogLevel.
=item B<-o OUTPUTFILE, --outfile=OUTPUTFILE>
Sets path to file for output (for reports, eg.)
=item B<-v, --verbose>
Enabling at which displays information about the progress on the screen
=item B<-V, --version>
Print the version number of the program and quit
lib/App/MonM/Checkit/HTTP.pm view on Meta::CPAN
=head1 CONFIGURATION DIRECTIVES
The basic Checkit configuration options (directives) detailed describes in L<App::MonM::Checkit/CONFIGURATION DIRECTIVES>
=over 4
=item B<Content>
Content "Content for HTTP request"
Specifies POST/PUT/PATCH request content
Example:
Set Content-Type text/plain
Content "Content for POST HTTP request"
Default: no content
=item B<Method>
Method GET
Defines the HTTP method: GET, POST, PUT, HEAD, PATCH, DELETE, and etc.
Default: GET
=item B<Proxy>
Proxy http://http.example.com:8001/
Defines the proxy URL for a http/https requests
Default: no proxy
lib/App/MonM/Checkit/HTTP.pm view on Meta::CPAN
timeout => $timeout,
protocols_allowed => ['http', 'https'],
);
$ua->default_header($_, value($attr, $_)) for (keys %$attr);
# Proxy
$ua->proxy(['http', 'https'], $proxy) if $proxy;
# Prepare request data
my $request = HTTP::Request->new(uc($method) => $uri);
if ($method =~ /PUT|POST|PATCH/) {
Encode::_utf8_on($content);
$request->header('Content-Length' => length(Encode::encode("utf8", $content)));
$request->content(Encode::encode("utf8", $content));
}
# Request
my $response = $ua->request($request);
# Result
$self->status(($response->is_info || $response->is_success || $response->is_redirect) ? 1 : 0);
lib/App/MonM/ConfigSkel.pm view on Meta::CPAN
#
# Defines the URL for HTTP/HTTPS requests
#
# Default: http://localhost
#
#URL https://user:password@www.example.com
URL https://www.example.com
#
# Defines the HTTP method: GET, POST, PUT, HEAD, PATCH, DELETE, and etc.
#
# Default: GET
#
#Method GET
#
# Defines the timeout of HTTP requests
#
# Default: 180
#
lib/App/MonM/ConfigSkel.pm view on Meta::CPAN
#
# Defines HTTP request headers.
# This directive allows you set case sensitive HTTP headers.
# There can be several such directives.
#
# Set User-Agent "MyAgent/1.00"
# Set X-Token "mdffltrtkmdffltrtk"
#
# Specifies POST/PUT/PATCH request content
#
# Set Content-Type text/plain
# Content "Content for HTTP request"
#
# Default: no content
#
# Defines the proxy URL for a http/https requests
#
# Default: no proxy
( run in 0.295 second using v1.01-cache-2.11-cpan-64827b87656 )