Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

authen::simple::http(3pm) [debian man page]

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)
Man Page

7 More Discussions You Might Find Interesting

1. IP Networking

http error code

Hi, I'm looking for detailed http error codes. I want to know what means : HTTP/1.1" 302 330 and HTTP/1.1" 302 265 Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

2. Shell Programming and Scripting

How to cut the boldened url

Following is a Webserver log 138.132.31.125 - mas@zir.com "GET HTTPS://post.zir.com/wps/PA_1_0_J4/zrec_portal/static/images/hdr_makepayment_gry.gif HTTP/1.1" 200 2421 72.123.254.143 - Unauth "GET HTTPS://load.zir.com/servlet/LSCallUMA?servName=retLinkURL&ATTRIBUTECODE=AMSSHSIAQuestion1... (2 Replies)
Discussion started by: openspark
2 Replies

3. Shell Programming and Scripting

File downloading

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)
Discussion started by: imad77
2 Replies

4. Shell Programming and Scripting

Perl newbie questions!

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)
Discussion started by: byte1918
5 Replies

5. UNIX for Dummies Questions & Answers

LWP::Simple Problem !!

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)
Discussion started by: pawannoel
7 Replies

6. Shell Programming and Scripting

Grabbing web forms with Perl

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)
Discussion started by: wibbs
2 Replies

7. Programming

Socket Keep-Alive

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)
Discussion started by: Projecteer
6 Replies