Authen::Simple::HTTP(3pm) User Contributed Perl Documentation Authen::Simple::HTTP(3pm)NAME
Authen::Simple::HTTP - Simple HTTP authentication
SYNOPSIS
use Authen::Simple::HTTP;
my $http = Authen::Simple::HTTP->new(
url => 'http://www.host.com/protected'
);
if ( $http->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::HTTP
PerlSetVar AuthenSimpleHTTP_url "http://www.host.com/protected"
<Location /protected>
PerlAuthenHandler Authen::Simple::HTTP
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
Authenticate against an HTTP server.
METHODS
* new
This method takes a hash of parameters. The following options are valid:
* url Url to authenticate against. Required.
url => 'http://www.host.com/protected'
* agent Any object that is a subclass of LWP::UserAgent.
agent => LWP::UserAgent->new;
* log Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::HTTP')
* authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple.
LWP::UserAgent.
LWPx::ParanoidAgent.
AUTHOR
Christian Hansen "ch@ngmedia.com"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.8 2008-03-01 Authen::Simple::HTTP(3pm)
Check Out this Related Man Page
Authen::Simple::PAM(3pm) User Contributed Perl Documentation Authen::Simple::PAM(3pm)NAME
Authen::Simple::PAM - Simple PAM authentication
SYNOPSIS
use Authen::Simple::PAM;
my $pam = Authen::Simple::PAM->new(
service => 'login'
);
if ( $pam->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::PAM
PerlSetVar AuthenSimplePAM_service "login"
<Location /protected>
PerlAuthenHandler Authen::Simple::PAM
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
PAM authentication.
METHODS
o new
This method takes a hash of parameters. The following options are valid:
o service
PAM service. Defaults to "login".
service => 'sshd'
o log
Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::PAM')
o authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple.
Authen::PAM.
AUTHOR
Christian Hansen "ch@ngmedia.com"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2006-01-12 Authen::Simple::PAM(3pm)
Hi,
I am newbie in Perl/CGI and I need your help to develop a little script to help me to download some files located in a FTP server via HTTP to a disk.
I need to authenticate with username/password via a HTTP page and I can choose the files to download from the web page to my disk.
Can... (2 Replies)
Hi,
So I started to learn perl a few days ago, and I have some problems...
One of my problems...
#!C:\Perl64\bin\perl.exe -w
use LWP::Simple;
print "Content-Type: Text/Plain\n\n";
sub pagelinks {
return @all = get($_) =~ /href\s*=\s*"?(+)/gis;
}
@a =... (5 Replies)
Hi All,
I'm having a problem when I run the following code for example
perl -e 'use LWP::Simple; getprint "http://google.com"'
Can't locate LWP/Simple.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6... (7 Replies)
Hello Everyone,
I've googled everywhere for this with no luck and my brain hurts.
I'm trying to write a program to take my webpages and search for forms.
I've used LWP::Simple to store a website in $content
I need to cut the form out of $content. I don't know how to do this seeing as how... (2 Replies)
Hi
I'm adding http 1.1 GET to my project and trying to use “Keep-Alive” HTTP connections to the host, The problem is when I recv() the first page, it succeeds. However, the 2nd consecutive recv() will receive zero bytes, for which I really have no idea. As per HTTP 1.1 I have Connection: ... (6 Replies)