Main > Free Download Search >

Free req software for linux

req

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 19
CGI::Request 2.0b1

CGI::Request 2.0b1


CGI::Request is a parse client request via a CGI interface. more>>
CGI::Request is a parse client request via a CGI interface.

SYNOPSIS

use CGI::Request;

# Simple interface: (combines SendHeaders, new and import_names)

$req = GetRequest($pkg);

print FmtRequest(); # same as: print $req->as_string


# Full Interface:

$req = new CGI::Request; # fetch and parse request

$field_value = $req->param(FieldName);
@selected = $req->param(SelectMultiField);
@keywords = $req->keywords; # from ISINDEX

print $req->as_string; # format Form and CGI variables

# import form fields into a package as perl variables!
$req->import_names(R);
print "$R::FieldName";
print "@R::SelectMultiField";

@value = $req->param_or($fieldname, $default_return_value);

# Access to CGI interface (see CGI::Base)

$cgi_obj = $req->cgi;
$cgi_var = $req->cgi->var("REMOTE_ADDR");


# Other Functions:

CGI::Request::Interface($cgi); # specify alternative CGI

CGI::Request::Debug($level); # log to STDERR (see CGI::Base)


# Cgi-lib compatibility functions
# use CGI::Request qw(:DEFAULT :cgi-lib); to import them

&ReadParse(*input);
&MethGet;
&PrintHeader;
&PrintVariables(%input);

This module implements the CGI::Request object. This object represents a single query / request / submission from a WWW user. The CGI::Request class understands the concept of HTML forms and fields, specifically how to parse a CGI QUERY_STRING.

<<less
Download (0.12MB)
Added: 2006-10-21 License: Perl Artistic License Price:
1099 downloads
Crypt::SSLeay 0.51

Crypt::SSLeay 0.51


Crypt::SSLeay is a Perl module for OpenSSL glue that provides LWP https support. more>>
Crypt::SSLeay is a Perl module for OpenSSL glue that provides LWP https support.

SYNOPSIS

lwp-request https://www.nodeworks.com

use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $req = new HTTP::Request(GET, https://www.nodeworks.com);
my $res = $ua->request($req);
print $res->code."n";

# PROXY SUPPORT
$ENV{HTTPS_PROXY} = http://proxy_hostname_or_ip:port;

# PROXY_BASIC_AUTH
$ENV{HTTPS_PROXY_USERNAME} = username;
$ENV{HTTPS_PROXY_PASSWORD} = password;

# DEBUGGING SWITCH / LOW LEVEL SSL DIAGNOSTICS
$ENV{HTTPS_DEBUG} = 1;

# DEFAULT SSL VERSION
$ENV{HTTPS_VERSION} = 3;

# CLIENT CERT SUPPORT
$ENV{HTTPS_CERT_FILE} = certs/notacacert.pem;
$ENV{HTTPS_KEY_FILE} = certs/notacakeynopass.pem;

# CA CERT PEER VERIFICATION
$ENV{HTTPS_CA_FILE} = certs/ca-bundle.crt;
$ENV{HTTPS_CA_DIR} = certs/;

# CLIENT PKCS12 CERT SUPPORT
$ENV{HTTPS_PKCS12_FILE} = certs/pkcs12.pkcs12;
$ENV{HTTPS_PKCS12_PASSWORD} = PKCS12_PASSWORD;

This perl module provides support for the https protocol under LWP, so that a LWP::UserAgent can make https GET & HEAD & POST requests. Please see perldoc LWP for more information on POST requests.

The Crypt::SSLeay package contains Net::SSL, which is automatically loaded by LWP::Protocol::https on https requests, and provides the necessary SSL glue for that module to work via these deprecated modules:

Crypt::SSLeay::CTX
Crypt::SSLeay::Conn
Crypt::SSLeay::X509

Work on Crypt::SSLeay has been continued only to provide https support for the LWP - libwww perl libraries. If you want access to the OpenSSL API via perl, check out Sampos Net::SSLeay.

<<less
Download (MB)
Added: 2006-09-22 License: Perl Artistic License Price:
1134 downloads
pyrad 0.9

pyrad 0.9


pyrad is a Python RADIUS client. more>>
pyrad is a Python RADIUS client.

pyrad contains several modules:

pyrad.client
RADIUS client class.
pyrad.dictionary
RADIUS dictionary support. Supports standard radiusd dictionaries and has preliminary support for the freeradius octets and abinary extensions.
pyrad.packet
A packet with a RADIUS request or reply. A packet object takes care of all the necessary data conversion allowing the programmer to only use standard python data types and RADIUS attribute names.
pyrad.server
Basic RADIUS server and proxy classes.
pyrad.tools
Utility functions, mostly used internally for data conversion

Simple example

Below is a simple example of how to use pyrad; it shows how to do an authentication request.

import pyrad.packet
from pyrad.client import Client
from pyrad.dictionary import Dictionary

srv=Client(server="radius.my.domain", secret="s3cr3t",
dict=Dictionary("dicts/dictionary", "dictionary.acc"))

req=srv.CreateAuthPacket(code=pyrad.packet.AccessRequest,
User_Name="wichert", NAS_Identifier="localhost")
req["User-Password"]=req.PwCrypt("password")

reply=srv.SendPacket(req)
if reply.code==pyrad.packet.AccessAccept:
print "access accepted"
else:
print "access denied"

print "Attributes returned by server:"
for i in reply.keys():
print "%s: %s" % (i, reply[i])

<<less
Download (0.017MB)
Added: 2006-03-06 License: BSD License Price:
1329 downloads
Firewall Builder 2.1.13

Firewall Builder 2.1.13


Firewall Builder is a multi-platform firewall configuration and management system. more>>
Firewall Builder is a multi-platform firewall configuration and management system. It consists of a GUI and set of policy compilers for various firewall platforms.

Firewall Builder helps users maintain a database of objects and allows policy editing using simple drag-and-drop operations.

The GUI and policy compilers are completely independent, this provides for a consistent abstract model and the same GUI for different firewall platforms. It currently supports iptables, ipfilter, ipfw, OpenBSD pf and Cisco PIX.

Whats New in This Release:

Improvements and bug fixes in the GUI

* fixed bug #1740766: "lock not saved". This method now copies the value
of "ro" attribute (read-only). Clear it in the caller if neccessary.
Method duplicate() clears it after calling shallowDuplicate in order
to be able to modify the object, then restores this attribute to its
original value.
* fixed bug #1743117: "crash while editing any". Added check, user
should not be able to unlock Standard objects library
* fixed bug #1753188: "policy activation fails on PIX and IOS".
Installer failed if account used to authenticate to the router or PIX
went straight to enable mode after login.
* added simple template object for Cisco router 36xx

Improvements and bug fixes in policy compiler for iptables

* fixed bug #1746257: "fwbuilder breaks IPv6". Added an option to the
firewall settings dialog for iptables that controls whether compiler
should skip generation of the code to set default policy of all ipv6
chains to DROP. This option is off by default, that is compiler puts
the code in. This helps maintain backwards compatibility with old data
files that do not have this option, which is equivalent to this option
being "off".
* fixed bug #1747332: "missing CONNMARK/ restore mark in Output Chain"
* compiler permits setting direction in the rule while interface field
is "All". This generates iptables command in chain INPUT or OUTPUT
with "-i +" or "-o +" interface specification to match all interfaces.

Improvements and bug fixes in policy compiler for PF

* fixed bug #1747828: "anchors generation - "log" not supported". "Log"
keyword is not allowed in "anchor" rules; compiler should not generate
it even if user turned logging on in a rule with action Branch
* implemented support for PF limit options "src-nodes", "tables" and
"table-entries". Feature Req. #1674919: "Support "set limit
table-entries""
* better compliance with PF 4.x. Feature Req. #1679793: "add no state
and flags any". If version is set to 4.x, compiler skips "flags S/SA
keep state" for rules mathcing tcp services. However, according to the
section "1.2. Operational changes" in PF FAQ at
http://www.openbsd.org/faq/upgrade41.html , there should be a way to
add "keep state" explicitly for rules on interface enc0. Added this
option to the rule options dialog.
* Added support for "set skip on " command for PF. If an interface is
marked as "unprotected" in the GUI, compiler generates this command
for it. This is useful for loopback or other virtual interfaces.

Improvements and bug fixes in policy compilers for Cisco IOS ACL

* Fixed bug that caused compiler to exit abnormally while compiling a
rule with interface field "all". Compiler should generate ACL lines
for all interfaces of the router (except those marked "unprotected")

<<less
Download (MB)
Added: 2007-07-23 License: GPL (GNU General Public License) Price:
835 downloads
nget 0.27.1

nget 0.27.1


nget is a command line nntp file grabber. more>>
nget is a command line nntp file grabber. It automatically pieces together multipart postings for easy retrieval, even substituting parts from multiple servers. Handles disconnects and resuming very well.
nget is developed on linux (glibc2), and has been successfully compiled/tested
on: linux x86(gcc 2.95.4, gcc 3.0.4, gcc 3.2, gcc 3.3), linux alpha(gcc 2.95.2), macosx(gcc 2.95.2), freebsd x86(gcc 2.95.4, gcc 3.0.4), solaris sparc(gcc 2.95.2), win32(mingw or cygwin) and should compile without modifications on other systems using g++ 2.95+ or other up to date compliers. Older compilers like gcc 2.7.x can no longer build nget, but can (probably) still build ngetlite, so you can still use it to download on an older comp if you have a recent comp that you can use nget to write the listfiles on (-w option).
Main features:
- Automatic multi-part post joining
- Automatic binary decoding (using uulib)
- Caches header data for quick access
- Full multi-server support, transparently joining parts from different servers
- Full multi-group support, transparently joining parts from multiple newsgroups
- Automatic retries on network errors
- Resumes after the last part successfully downloaded
- Dupe file detection to avoid unneeded downloads
- Select what to retrieve based upon a regular expresson (-r), or even a more complex expression (-R) based upon any of the files subject, author, lines, bytes, # of parts we have, # of parts req, date, age, messageid, and references.
- Search for newsgroups based on their names and/or descriptions
- Automatic handling of PAR and PAR2 files retrieves only as many recovery files as necessary to repair any missing/damaged files.
Enhancements:
- Fix error in configure script when printing exceptions not found message, due to unquoted string. (Reported by M.J. Soft)
- Fix -G* when NGETCACHE != NGETHOME. (Reported by Steven Adeff)
- Fix midinfo and newsgroups files not honoring NGETCACHE/cachedir setting. (Reported by Christian Marillat)
- Allow absolute paths in --text=mbox: . (Requested by Volker Wysk)
- Support tab as the field separator in XPAT results, for Newsplex server support. (Requested by Mark Blain)
- -a no longer gives an error if the server doesnt support LIST NEWSGROUPS(which retrieves newsgroup descriptions.)
- Fix printing a warning when loading newsgroups list which contains descriptions of groups which no server actually carries. (Reported by Frederick Bruckman)
- Fix problems loading group descriptions from newsgroups list which contain tabs. (Reported by Frederick Bruckman)
<<less
Download (0.30MB)
Added: 2006-06-20 License: GPL (GNU General Public License) Price:
1222 downloads
RPC::XML 0.59

RPC::XML 0.59


RPC::XML is a set of classes for core data, message and XML handling. more>>
RPC::XML is a set of classes for core data, message and XML handling.

SYNOPSIS

use RPC::XML;

$req = RPC::XML::request->new(fetch_prime_factors,
RPC::XML::int->new(985120528));
...
$resp = RPC::XML::Parser->new()->parse(STREAM);
if (ref($resp))
{
return $resp->value->value;
}
else
{
die $resp;
}

The RPC::XML package is an implementation of the XML-RPC standard.

The package provides a set of classes for creating values to pass to the constructors for requests and responses. These are lightweight objects, most of which are implemented as tied scalars so as to associate specific type information with the value. Classes are also provided for requests, responses, faults (errors) and a parser based on the XML::Parser package from CPAN.

This module does not actually provide any transport implementation or server basis. For these, see RPC::XML::Client and RPC::XML::Server, respectively.

<<less
Download (0.12MB)
Added: 2006-09-21 License: Perl Artistic License Price:
1128 downloads
ClarkConnect 4.1 / 4.2 Alpha 1

ClarkConnect 4.1 / 4.2 Alpha 1


The ClarkConnect solution is built on the stability and security of Linux. more>>
ClarkConnect is a powerful yet easy-to-use software package that transforms off-the-shelf server hardware into a dedicated Internet firewall, gateway or server.
ClarkConnect is a great solution for schools, businesses, organizations, and home offices.
ClarkConnect transforms standard PC hardware into either:
- a dedicated firewall/gateway for your network, or
- a standalone server on your local network
The award-winning Linux-based solution includes firewall and security tools, along with file, print, web, e-mail, proxy, antivirus, antispam, content filtering, VPN servers and more. A detailed feature list is shown in the sidebar below.
Easy to Install and Manage
The software is easy to install on off-the-shelf hardware ... you can be up and running in minutes.
- purchase a CD, or download burn your own
- insert the CD into the server system
- start the server from the CD
- follow the installation wizard
Once you have your ClarkConnect system up and running, you can configure the server/gateway with an easy-to-use web-based administration tool.
Integrated Updates and Managed Services
- ClarkConnect includes integrated Gateway Services (GS). to update, manage and monitor your system.
- 24/7 port and resource monitoring
- DNS services, including dynamic DNS
- antivirus protection
- antispam tools
- content filter updates
- managed/dynamic VPN
- daily security audits
- intrusion detection updates
- e-mail/MX backup
Different Needs... Different Solutions
We offer three different editions of the ClarkConnect software. Each edition solves different needs.
Professional Edition - Firewall and Gateway
The Professional Edition is a firewall solution that protects your network from the constant hazards lurking on the Internet. The software includes a stateful firewall, antispam protection, antivirus protection, content filtering, managed VPN, intrusion prevention, and more.
Office Edition - All-in-One Gateway/Server
The Office Edition includes not only the core security features found in the Professional Edition, but also server features: file server, print server, web server, advanced mail server, and database server.
Home Edition - Home and Hobbyist Solution
The Home Edition is designed for home use -- we include extras such as MP3 support, online photo albums and computer security model appropriate for a home environment.
Main features:
- IPsec VPN
- PPTP VPN
- Managed/Dynamic VPN
- 1-to-1 NAT support
- DMZ support
- Stateful Firewall
- Intrusion detection
- Intrusion prevention
- Antispam
- Antivirus (license req.)
- SMTP authentication
- SMTP gateway
- SMTP server
- POP and IMAP servers
- Webmail
- Banner ad blocking
- Web proxy
- Content filtering
- Bandwidth manager
- DSL (including PPPoE)
- Cable Modem
- 802.11b Wireless
- Internal DHCP server
- Caching DNS server
- Hardware and Software RAID
- multi-processor support
- Web-based configuration
- Optional Webmin package
- Apache web server
- Support for CGI and PHP
- Secure/SSL support
- FTP server
- Windows file server
- AppleShare file server
- Print server support
- Printer sharing
- MySQL Database
Whats New in 4.1 Stable Release:
- File server antivirus; Samba PDC (Primary Domain Controller) support; improved server and LAN backup features; new greylist and blacklist support for the antispam engine; greylist antispam engine; e-mail disclaimer; e-mail virtual domain support; e-mail catch-all mailbox support; webmail administration tools; the backup and restore system settings now includes the user database; the firewall has changed to accommodate the new Hot LAN and Blocking features...
Whats New in 4.2 Alpha 1 Development Release:
- ClarkConnect Community 4.2 Alpha 1 is available. Though it has only been four months since the last release, version 4.2 brings quite a few new features. This alpha build is intended for developers, integrators and curious users. Typical uses for this alpha build: final integration testing for third party developers; testing new hardware and drivers with the Linux 2.6.18 kernel; getting a sneak preview of the upcoming 4.2 release. This is alpha software, so quite a few software modules are still incomplete or not well tested. The most important known issues are: Webconfig template graphics and icons are incomplete; graphical console tool does not display on the screen properly....
<<less
Download (435.2MB)
Added: 2007-08-24 License: GPL (GNU General Public License) Price:
555 downloads
THC-Snooze 0.0.7

THC-Snooze 0.0.7


THC-Snooze is a framework for network traffic analysis. more>>
THC-Snooze is a framework for network traffic analysis. THC-Snooze project can be used as a sniffer or a network based intrusion detection system.

It will watch the network traffic and invoke small programs ("modules" or "protocol dissectors"), which are easily written in a script language, to gather information from the data.

The possible applications for THCsnooze range from simple and advanced sniffing to passive network auditing. It is possible to write modules that will track a connection until a successful login occured. Or you can check if a client application establishes with a ssl enabled server (insecure) SSLv2 connections.

Getting Started:

So, let us imagine you want to write a module for snooze and you dont know the protocol. (I will illustrate these steps on a well known protocol so its maybe easier to understand why we are doing these steps).

First we need some sample data to analyze. We make a copy of the dump_tcp.lua file and change the first line to match our needs:

"-- :xxx_no_proto:1:tcp:" to "-- :xxx_no_proto:21:tcp:"

We start snoozed:

# snoozed -i en0 -M modules/ -b -c t0 -D 10
THCsnoozed-0.0.6 by THC
DEBUG: loading modules ...
...

After we got one or two connections sniffed and stored we quit snooze. Now, we can use hxdmp to view the logs (well, you can use your favourite text editor to do that):

$ ./hxdmp -c t0/127.0.0.1_31231_127.0.0.1_21_0001.complete
hxdmp - THCsnooze hexdump by THC

00000000 32 32 30 20 6c 6f 63 61 6c 68 6f 73 74 20 46 54 | 220 loca lhost FT
00000010 50 20 73 65 72 76 65 72 20 28 74 6e 66 74 70 64 | P server (tnftpd
00000020 20 32 30 30 35 30 31 30 31 29 20 72 65 61 64 79 | 2005010 1) ready
00000030 2e 0d 0a 55 53 45 52 20 67 75 65 73 74 31 0d 0a | ...USER guest1..
00000040 33 33 31 20 50 61 73 73 77 6f 72 64 20 72 65 71 | 331 Pass word req
00000050 75 69 72 65 64 20 66 6f 72 20 67 75 65 73 74 31 | uired fo r guest1
00000060 2e 0d 0a 50 41 53 53 20 41 41 41 41 0d 0a 32 33 | ...PASS AAAA..23
00000070 30 2d 0d 0a 53 59 53 54 0d 0a 46 45 41 54 0d 0a | 0-..SYST ..FEAT..
00000080 50 57 44 0d 0a 20 20 20 20 57 65 6c 63 6f 6d 65 | PWD.. Welcome
00000090 20 74 6f 20 42 6f 78 30 30 31 21 0d 0a 32 33 30 | to Box0 01!..230
000000a0 20 55 73 65 72 20 67 75 65 73 74 31 20 6c 6f 67 | User gu est1 log
000000b0 67 65 64 20 69 6e 2e 0d 0a 32 31 35 20 55 4e 49 | ged in.. .215 UNI
000000c0 58 20 54 79 70 65 3a 20 4c 38 20 56 65 72 73 69 | X Type: L8 Versi
000000d0 6f 6e 3a 20 74 6e 66 74 70 64 20 32 30 30 35 30 | on: tnft pd 20050
000000e0 31 30 31 0d 0a 32 31 31 2d 46 65 61 74 75 72 65 | 101..211 -Feature
000000f0 73 20 73 75 70 70 6f 72 74 65 64 0d 0a 20 4d 44 | s suppor ted.. MD
00000100 54 4d 0d 0a 20 4d 4c 53 54 20 54 79 70 65 2a 3b | TM.. MLS T Type*;
00000110 53 69 7a 65 2a 3b 4d 6f 64 69 66 79 2a 3b 50 65 | Size*;Mo dify*;Pe
00000120 72 6d 2a 3b 55 6e 69 71 75 65 2a 3b 0d 0a 20 52 | rm*;Uniq ue*;.. R
00000130 45 53 54 20 53 54 52 45 41 4d 0d 0a 20 53 49 5a | EST STRE AM.. SIZ
00000140 45 0d 0a 20 54 56 46 53 0d 0a 32 31 31 20 45 6e | E.. TVFS ..211 En
00000150 64 0d 0a 32 35 37 20 22 2f 68 6f 6d 65 2f 67 75 | d..257 " /home/gu
00000160 65 73 74 31 22 20 69 73 20 74 68 65 20 63 75 72 | est1" is the cur
00000170 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 2e 0d | rent dir ectory..
00000180 0a | .

The red data is send from server to client; the green from client to server. We can see here that user guest1 is logging in with password AAAA. It is time to write a module that can extract this information from the logfile.
<<less
Download (0.093MB)
Added: 2006-03-03 License: GPL (GNU General Public License) Price:
1331 downloads
Getopt::Fancy 0.02

Getopt::Fancy 0.02


Getopt::Fancy is an object approach to handling command line options, focusing on end user happiness. more>>
Getopt::Fancy is an object approach to handling command line options, focusing on end user happiness.

SYNOPSIS

use Getopt::Fancy;

my $opts = Getopt::Fancy->new();
$opts->add("db", GT => "=s",
EX => " ",
DESC => "The database to dump. Leave unset for all databases.",
DEF => "teen_titans",
ALLOWED => ["--all-databases", "mydb", "teen_titans"],
REGEX => ^[a-zA-Z0-9_]+$,
REQ => 0,
SECTION => "Required DB Params");

# Allow just printing out of set options
$opts->add("check_args", DESC => "Just print all the options", SECTION => "Misc Params");

# Allow user to specify list of options s/he needs help with
$opts->add("help", GT => ":s@", EX => "[option1,option2..]",
DESC => "Give option names and itll print the help for just those options, otherwise all.",
SECTION=>"Misc Params", COMMAS=>1);

# Get the command line options
my $error_msg = $opts->get_options();
print_usage($error_msg) if $error_msg;

print "Will dump this database: $opts->{db} n";
print "User wants help information on these: " . join(", ", @{$opts->{help}}) . "n" if ($opts->{help});

print_usage() if $opts->{help};
print_args() if $opts->{check_args};

sub print_args
{
print $opts->get_values();
exit(0);
}

sub print_usage
{
my $hopts;
my $msg = shift;

$hopts = $opts->{help} unless (scalar @{$opts->{help}} == 0);
print "usage: $0 n";
print $opts->get_usage($hopts);

print "ERROR: $msgn" if $msg;

exit(0);
}

Getopt::Fancy Allows command line options to be all in one place in your script including default values, allowed values, user-friendly descriptions, required flags and pattern matching requirements. Ofttimes script writers skimp on the usage information or have out-dated help information. This modules helps script writers to be better citizens.

This module uses Getopt::Long, so the same rules apply.

<<less
Download (0.005MB)
Added: 2006-11-04 License: Perl Artistic License Price:
1084 downloads
Net::TCPwrappers 1.11

Net::TCPwrappers 1.11


Net::TCPwrappers is a Perl interface to tcp_wrappers. more>>
Net::TCPwrappers is a Perl interface to tcp_wrappers.

SYNOPSIS

use Net::TCPwrappers qw(RQ_DAEMON RQ_FILE request_init fromhost hosts_access);
...
my $progname = yadd;
while (accept(CLIENT, SERVER)) {
my $req = request_init(RQ_DAEMON, $progname, RQ_FILE, fileno(CLIENT));
fromhost($req);
if (!hosts_access($req)) {
# unauthorized access.
...
}
else {
# service connecting client.
...
}
}

ABSTRACT

Net::TCPwrappers offers perl programmers a convenient interface to the libwrap.a library from tcp_wrappers, Wietse Venemas popular TCP/IP daemon wrapper package. Use it in your perl code to monitor and filter access to TCP-based network services on unix hosts.

Net::TCPwrappers mimics the libwrap.a library fairly closely - the names of the functions and constants are identical, and calling arguments have been altered only slightly to be more perl-like.

<<less
Download (0.047MB)
Added: 2006-09-27 License: Perl Artistic License Price:
1125 downloads
WebFS::FileCopy 1.04

WebFS::FileCopy 1.04


WebFS::FileCopy is a Perl module to get, put, move, copy, and delete files located by URIs. more>>
WebFS::FileCopy is a Perl module to get, put, move, copy, and delete files located by URIs.

SYNOPSIS

use WebFS::FileCopy;

my @res = get_urls(ftp://www.perl.com, http://www.netscape.com);
print $res[0]->content if $res[0]->is_success;

# Get content from pages requiring basic authentication.
my $req = LWP::Request->new(GET => http://www.dummy.com/);
$req->authorization_basic(my_username, my_password);
@res = get_urls($req);

put_urls(put this text, ftp://ftp/incoming/new, file:/tmp/NEW);
move_url(file:/tmp/NEW, ftp://ftp/incoming/NEW.1);
delete_urls(ftp://ftp/incoming/NEW.1, file:/tmp/NEW);

copy_url(http://www.perl.com/index.html, ftp://ftp.host/outgoing/SIG);

copy_urls([file:/tmp/file1, http://www.perl.com/index.html],
[file:/tmp/DIR1/, file:/tmp/DIR2, ftp://ftp/incoming/]);

my @list1 = list_url(file:/tmp);
my @list2 = list_url(ftp://ftp/outgoing/);

This package provides some simple routines to read, move, copy, and delete files as references by string URLs, URI objects or URIs embedded in HTTP::Reqeust or LWP::Request objects. All subroutines in this package that expect a URI will accept a string, a URI object, or a HTTP::Reqeust or LWP::Request with an embedded URI. If passed a HTTP::Request or LWP::Request, then the method of the object is ignored and the proper method will be used to either GET or PUT the requested UIR.

The distinction between files and directories in a URI is tested by looking for a trailing / in the path. If a trailing / exists, then the URI is considered to point to a directory, otherwise it is a file.

All of the following subroutines are exported to the users namespace automatically. If you do not want this, then require this package instead of useing it.

<<less
Download (0.022MB)
Added: 2007-03-27 License: Perl Artistic License Price:
941 downloads
HTML::EmbperlObject 1.3.6

HTML::EmbperlObject 1.3.6


HTML::EmbperlObject is a Perl module that extents HTML::Embperl for building whole website with reusable components and objects. more>>
HTML::EmbperlObject is a Perl module that extents HTML::Embperl for building whole website with reusable components and objects.

SYNOPSIS

< Location /foo >
PerlSetEnv EMBPERL_OBJECT_BASE base.htm
PerlSetEnv EMBPERL_FILESMATCH ".htm.?|.epl$"
SetHandler perl-script
PerlHandler HTML::EmbperlObject
Options ExecCGI
< /Location >

HTML::EmbperlObject allows you to build object-oriented (OO) websites using HTML components which implement inheritance via subdirectories. This enables elegant architectures and encourages code reuse. The use of inheritance also enables a website-wide "look and feel" to be specified in a single HTML file, which is then used as a template for every other page on the site. This template can include other modules which can be overridden in subdirectories; even the template itself can be overridden. In a nutshell, EmbperlObject makes the design of large websites much more intuitive, allowing object-oriented concepts to be utilised to the fullest while staying within the "rapid application development" model of Perl and HTML.

HTML::EmbperlObject is basicly a mod_perl handler or could be invoked offline and helps you to build a whole page out of smaller parts. Basicly it does the following:

When a request comes in, a page, which name is specified by EMBPERL_OBJECT_BASE, is searched in the same directory as the requested page. If the pages isnt found, EmbperlObject walking up the directory tree until it finds the page, or it reaches DocumentRoot or the directory specified by EMBPERL_OBJECT_STOPDIR.

This page is then called as frame for building the real page. Addtionaly EmbperlObject sets the search path to contain all directories it had to walk before finding that page. If EMBPERL_OBJECT_STOPDIR is set the path contains all directories up to the in EMBPERL_OBJECT_STOPDIR specified one.

This frame page can now include other pages, using the HTML::Embperl::Execute method. Because the search path is set by EmbperlObject the included files are searched in the directories starting at the directory of the original request walking up thru the directory which contains the base page. This means that you can have common files, like header, footer etc. in the base directory and override them as necessary in the subdirectory.

To include the original requested file, you need to call Execute with a * as filename. To call the the same file, but in an upper directory you can use the special shortcut ../*.

Additionaly EmbperlObject sets up a inherence hierachie for you: The requested page inherit from the base page and the base page inherit from a class which could be specified by EMBPERL_OBJECT_HANDLER_CLASS, or if EMBPERL_OBJECT_HANDLER_CLASS is not set, from HTML::Embperl::Req. That allows you to define methods in base page and overwrite them as neccessary in the original requested files.

For this purpose a request object, which is blessed into the package of the requested page, is given as first parameter to each page (in $_[0]). Because this request object is a hashref, you can also use it to store additional data, which should be available in all components. Embperl does not use this hash itself, so you are free to store whatever you want. Methods can be ordinary Perl subs (defined with [! sub foo { ... } !] ) or Embperl subs (defined with [$sub foo $] .... [$endsub $]) .

<<less
Download (0.35MB)
Added: 2006-09-01 License: Perl Artistic License Price:
1148 downloads
Embperl::Syntax::RTF 2.2.0

Embperl::Syntax::RTF 2.2.0


Embperl::Syntax::RTF is a Perl class derived from Embperl::Syntax to define the syntax for RTF files. more>>
Embperl::Syntax::RTF is a Perl class derived from Embperl::Syntax to define the syntax for RTF files. RTF files can be read and written by various word processing programms. This allows you to create dynamic wordprocessing documents or let process serial letters thru Embperl.

Currently Embperl regocnices the fields DOCVARIABLE, MERGEFIELD and NEXT. Variablenames are resolved as hash keys to $param[0] e.g. foo.bar referes to $param[0]{foo}{bar}, the @param Array can by set via the param parameter of the Execute function. NEXT moves to the next element of the @param array. If the end of the document is reached, Embperl repeats the document until all element of @param are processed. This can for example be use to tie a database table to @param and generate a serial letter.

SYNOPSIS

my $x = $Embperl::req -> component -> code ;
my ($op, $cmp, $a, $b) = XML::Embperl::DOM::Node::iChildsText (%$q%,%$x%,1) =~ /:([=])+s*"(.*?)"(?:s*"(.*?)"s*"(.*?)")?/ ;

if ($op eq =) { $op = eq }
elsif ($op eq ) { $op = gt }
elsif ($op eq >=) { $op = ge }
elsif ($op eq<<less
Download (0.65MB)
Added: 2007-07-25 License: Perl Artistic License Price:
821 downloads
Perlbug::Interface::Web 2.93

Perlbug::Interface::Web 2.93


Perlbug::Interface::Web is a web interface to perlbug database. more>>
Perlbug::Interface::Web is a web interface to perlbug database.

SYNOPSIS

my $o_web = Perlbug::Interface::Web->new;

print $o_web->top;

print $o_web->request(help);

print $o_web->links;

METHODS

new

Create new Perlbug::Interface::Web object.
my $web = Perlbug::Interface::Web->new;

setup

Setup Perlbug::Interface::Web
$o_web->setup($cgi);

check_user

Access authentication via http, we just prime ourselves with data from the db as well.

menus

Return menu of system, designed for vertical format. Wraps logo, title and links

print $o_web->menus();

logo

Return logo of system with href=hard_wired_url

print $o_web->logo();

get_title

Return title of current page

print $o_web->get_title();

summary

Return summary of open/closed bugs

print $o_web->summary();

links

Return links of system, with adminfaq inserted if appropriate, configured links and object search forms.

print $o_web->links();

index

Display the index results here...

get_request

Return the req value for this request

my $req = $self->get_request;

set_command

Set the command type for the rest of the process, based on the input and operation

my $cmd = $o_web->set_command($req);

commands

Return command menu buttons for request given

print $o_web->commands($req);

switch

Return appropriate method call for request(else index), using internal CGI object

my $method = $o_web->switch([$req]); # set $method=($call|index)

start

Return appropriate start header data for web request, includes start table.

print $o_web->start();

form

Return form with appropriate name and target etc.

print $o_web->form(menus);

top

Return consistent top of page.

print $o_web->top($req, $cmd);

request

Handle all web requests (internal print)

$o_web->request($call);

target2file

Return appropriate dir/file.ext for given target string

my $filename = $o_base->target2file(header);

# -> /home/richard/web/header.html

finish

Return appropriate finishing html
Varies with framed, includes table finish

print $o_web->finish($req);

overview

Wrapper for doo method

graph

Display pie or mixed graph for groups of bugs etc., mixed to come.

date

Wrapper for search by date access

create

Wrapper for object creation

$o_web->create($obj, %data);

object_handler

Wrapper for object access: no ids = search form

$o_web->object_handler($me_thod, $oid); # o_cgi comes from the heavens

hist

History mechanism for bugs and users.

Move formatting to Formatter::history !!!

headers

Headers for all objects (message, note, ...) by id

$o_web->headers(patch, $id);

bidmid

Wrapper for bugid and messageid access

spec

Returns specifications for the Perlbug system.

$dynamic =~ s/ />/g;
$dynamic =~ s/b(http:.+?perlbug.cgi)b/$1/gi;
$dynamic =~ s/b([ |&.t;]+@.+?.(?:com|org|net|edu))b/$1/gi;

webhelp

Web based help for perlbug.

print $web->webhelp;

mailhelp

Web based mail help for perlbug.

print $web->mailhelp;

delete

Wrapper for delete access

sql

Open field sql query processor

todo

To do list, may be appended to

adminfaq

adminFAQ

web_query

Form bugid search web query results

# results - dont map to query() unless Base::query modified

search

Construct search form

with chosen params as defaults...

update

For all application objects, wraps to object_handler

$o_web->update(); # args ignored here for passing purposes

current_buttons

Get and set array of relevant buttons by context key

my @buttons = $o_web->current_buttons(search update reset, scalar(@uids), [$colspan]);

case

Handle case sensitivity from web search form.

format_query

Produce SQL query for bug search from cgi query.

Can be optimised somewhat ...

my $query = $web->format_query;

wildcard

Convert * into % for sqlquery

my $string = $self->wildcard(5.*);

tenify

Create range of links to split (by tens or more) bugids from web query result.

$self->tenify(@_bids, bug, 7); # in chunks of 7

<<less
Download (0.49MB)
Added: 2007-07-31 License: Perl Artistic License Price:
816 downloads
HTTPD::Bench::ApacheBench 0.63

HTTPD::Bench::ApacheBench 0.63


HTTPD::Bench::ApacheBench is a Perl API for Apache benchmarking and regression testing. more>>
HTTPD::Bench::ApacheBench is a Perl API for Apache benchmarking and regression testing.

SYNOPSIS

use HTTPD::Bench::ApacheBench;

my $b = HTTPD::Bench::ApacheBench->new;

# global configuration
$b->concurrency(5);
$b->priority("run_priority");

# add HTTP request sequences (aka: runs)
my $run1 = HTTPD::Bench::ApacheBench::Run->new
({ urls => ["http://localhost/one", "http://localhost/two"] });
$b->add_run($run1);

my $run2 = HTTPD::Bench::ApacheBench::Run->new
({ urls => ["http://localhost/three", "http://localhost/four"],
cookies => ["Login_Cookie=b3dcc9bac34b7e60;"],
order => "depth_first",
repeat => 10,
memory => 2 });
$b->add_run($run2);

# send HTTP request sequences to server and time responses
my $ro = $b->execute;

# calculate hits/sec
print ((1000*$b->total_requests/$b->total_time)." req/secn");

# show request times (in ms) for $run1, 1st repetition
print join(, , @{$run1->request_times}) . "n";

# show response times (in ms) for $run2, 7th repetition
print join(, , @{$run2->iteration(6)->response_times}) . "n";

# dump the entire regression object (WARNING, this could be a LOT OF DATA)
use Data::Dumper;
my $d = Data::Dumper->new([$ro]);
print $d->Dumpxs;

GOALS

This project is meant to be the foundation of a complete benchmarking and regression testing suite for an advanced, transaction-based mod_perl site. We need to be able to stress our server to its limit while also having a way to verify the HTTP responses for correctness. Since our site is transaction-based (as opposed to content-based), we needed to extend the single-URL ab model to a multiple-URL sequence model.

ApacheBench is based on the Apache 1.3.12 ab code (src/support/ab.c).

Note: although this tool was designed to be used on an Apache mod_perl site, it is generally applicable to any HTTP-compliant server. Beware, however, that it sends a high volume of HTTP requests in a very short period of time, which may overwhelm some weaker HTTP server implementations like NT/IIS.

ApacheBench sends sequences of HTTP requests to an HTTP server and keeps track of the time taken to receive a response, the data that was returned, the size of the data that was returned, and various other bits of information.
Since it is implemented in C, it sends HTTP requests in a tight loop which can stress your server to 100% capacity, especially if invoked in multiple concurrent instances. It gives accurate time measurements down to the millisecond for each HTTP request-response interval.

Included is a simplified re-implementation of ab using the ApacheBench Perl API. This should help get you started with ApacheBench.

<<less
Download (0.063MB)
Added: 2007-08-06 License: Perl Artistic License Price:
814 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 2
  • 1
  • 2