-
-
14 Aug 2008 14:36:19 UTC
- Distribution: Lemonldap-Portal-Script
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (572 / 0 / 14)
- Kwalitee
Bus factor: 0- 0.00% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (7.3KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Lemonldap::Portal::Script - Perl extension for Lemonldap websso framework
SYNOPSIS
use Lemonldap::Portal::Script $exchange = Lemonldap::Portal::Script::Exchange->new( numero => $cp, requete => $line ); $question = Lemonldap::Portal::Script::Question->new(); $response = Lemonldap::Portal::Script::Response->new();
DESCRIPTION
This module implementes 3 objects class : Exchange, Question ,Response
An Exchange is composed of one question and one response.
The parsing_example.pl shows how it works.
- First use firefox plugin in order to have client-server dialog in plain text file. I use The LiveHTTPHeaders for Firefox in order to recording connection on web site.
- Second ,the text dialog file is parsed by te program. It may split exchange in two groups. One for true exchange (authentication form) second for useless exchange : jpeg, css .
Methods
$line means a line of dialog file recording.
- Exchange->new( numero => $cp, requete => $line );
- Exchange->set_tirade('response',$response);
- Exchange->set_tirade('question',$question);
- Exchange->add_string("--------Fin echange $echange->{numero}");
- Exchange->set_method($line);# GET /POST
- Exchange->set_ResponseCode($line);# 200, 302 ..
- Exchange->as_string;
- Exchange->set_status (required , y/n )
EXPORT
None
SEE ALSO
Lemonldap(3), Lemonldap::Portal::Standard
http://lemonasso.org/
COPYRIGHT AND LICENSE
Copyright (C) 2004 by Eric German
Lemonldap originaly written by Eric german who decided to publish him in 2003 under the terms of the GNU General Public License version 2.
- This package is under the GNU General Public License, Version 2.
- The primary copyright holder is Eric German.
- Portions are copyrighted under the same license as Perl itself.
- Portions are copyrighted by Doug MacEachern and Lincoln Stein. This library is under the GNU General Public License, Version 2.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. A copy of the GNU General Public License is available in the source tree; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 208:
You forgot a '=back' before '=head2'
- Around line 259:
=cut found outside a pod block. Skipping to next block.
Module Install Instructions
To install Lemonldap::Portal::Script, copy and paste the appropriate command in to your terminal.
cpanm Lemonldap::Portal::Script
perl -MCPAN -e shell install Lemonldap::Portal::Script
For more information on module installation, please visit the detailed CPAN module installation guide.