1 | L I B W W W - P E R L - 5
|
---|
2 | -----------------------------
|
---|
3 |
|
---|
4 | Libwww-perl is a collection of Perl modules which provides a simple
|
---|
5 | and consistent programming interface (API) to the World-Wide Web. The
|
---|
6 | main focus of the library is to provide classes and functions that
|
---|
7 | allow you to write WWW clients, thus libwww-perl said to be a WWW
|
---|
8 | client library. The library also contain modules that are of more
|
---|
9 | general use and even classes that helps you implement simple HTTP
|
---|
10 | servers.
|
---|
11 |
|
---|
12 | There are actually two versions of libwww-perl: one for Perl4, and one
|
---|
13 | for Perl5. Both have a similar architecture, loosely based on the CERN
|
---|
14 | Library of Common Code (nowadays known as 'w3c-libwww').
|
---|
15 |
|
---|
16 | The Perl4 version is still(?) maintained by Roy Fielding, and was the
|
---|
17 | basis for tools such as MOMSpider. The perl4 version of libwww-perl
|
---|
18 | and much more information about its libraries can be found at:
|
---|
19 | http://www.ics.uci.edu/pub/websoft/libwww-perl/
|
---|
20 |
|
---|
21 | The Perl5 version (this package) is a complete rewrite for Perl5: the
|
---|
22 | code is organized in Modules, provides an Object Oriented API, is
|
---|
23 | updated for the latest HTTP and URL specification, and offers some
|
---|
24 | extended functionality.
|
---|
25 |
|
---|
26 | Full HTTP/1.1 support is on its way. Alpha releases of the LWPng
|
---|
27 | package is currently available from CPAN.
|
---|
28 |
|
---|
29 |
|
---|
30 | PREREQUISITES
|
---|
31 |
|
---|
32 | In order to install and use this package you will need Perl version
|
---|
33 | 5.004 or better. Some modules within this package depend on other
|
---|
34 | packages that are distributed separately from Perl. We recommend that
|
---|
35 | you have the following packages installed before you install
|
---|
36 | libwww-perl:
|
---|
37 |
|
---|
38 | MIME-Base64
|
---|
39 | HTML-Parser
|
---|
40 | libnet
|
---|
41 | MD5
|
---|
42 |
|
---|
43 | These packages should be available on CPAN.
|
---|
44 |
|
---|
45 | If you want to access sites using the https protocol, then you need to
|
---|
46 | install the Crypt-SSLeay modules first. (The Net::SSLeay module is not
|
---|
47 | supported any more.)
|
---|
48 |
|
---|
49 |
|
---|
50 | INSTALLATION
|
---|
51 |
|
---|
52 | You install libwww-perl, as you would install any perl module library,
|
---|
53 | by running these commands:
|
---|
54 |
|
---|
55 | perl Makefile.PL
|
---|
56 | make
|
---|
57 | make test
|
---|
58 | make install
|
---|
59 |
|
---|
60 | You can edit the configuration section of Makefile.PL to select which
|
---|
61 | programs to install in addition to the library itself. If you don't
|
---|
62 | want to install any programs (only the library files) and don't want
|
---|
63 | to mess with the Makefile.PL then pass the '-n' option to Makefile.PL:
|
---|
64 |
|
---|
65 | perl Makefile.PL -n
|
---|
66 |
|
---|
67 | If you want to install a private copy of libwww-perl in your home
|
---|
68 | directory, then you should try to produce the initial Makefile with
|
---|
69 | something like this command:
|
---|
70 |
|
---|
71 | perl Makefile.PL LIB=~/perl
|
---|
72 |
|
---|
73 | The Makefile.PL program will start out by checking your perl
|
---|
74 | installation for a few packages that are recommended to be installed
|
---|
75 | together with libwww-perl.
|
---|
76 |
|
---|
77 | Optional network tests are _not_ enabled automatically when you unpack
|
---|
78 | this package. Consult the t/README file for instructions on how to
|
---|
79 | enable these tests.
|
---|
80 |
|
---|
81 |
|
---|
82 | DOCUMENTATION
|
---|
83 |
|
---|
84 | See lib/LWP.pm for an overview of the library. See ChangeLog for
|
---|
85 | recent changes. POD style documentation is included in all modules
|
---|
86 | and scripts. These are normally converted to manual pages and
|
---|
87 | installed as part of the "make install" process. You should also be
|
---|
88 | able to use the 'perldoc' utility to extract and read documentation
|
---|
89 | from the module files directly.
|
---|
90 |
|
---|
91 |
|
---|
92 | SUPPORT
|
---|
93 |
|
---|
94 | Question about how to use this library should be directed to the
|
---|
95 | comp.lang.perl.modules USENET Newsgroup. Bug reports and suggestions
|
---|
96 | for improvements can be sendt to the <[email protected]> mailing
|
---|
97 | list. This mailing list is also the place for general discussions and
|
---|
98 | development of the libwww-perl package.
|
---|
99 |
|
---|
100 | You can join the mailing list by sending a message to
|
---|
101 | <[email protected]> with "Subscribe" as subject.
|
---|
102 | ^^^^^^^^
|
---|
103 |
|
---|
104 | AVAILABILITY
|
---|
105 |
|
---|
106 | The latest version of libwww-perl should always be available from:
|
---|
107 |
|
---|
108 | http://www.linpro.no/lwp/
|
---|
109 |
|
---|
110 | The library is also available from the Comprehensive Perl Archive
|
---|
111 | Network (CPAN). Visit <URL:http://www.perl.com/CPAN/> to find a CPAN
|
---|
112 | site near you.
|
---|
113 |
|
---|
114 |
|
---|
115 | COPYRIGHT
|
---|
116 |
|
---|
117 | © 1995-1998 Gisle Aas. All rights reserved.
|
---|
118 | © 1995 Martijn Koster. All rights reserved.
|
---|
119 |
|
---|
120 | This library is free software; you can redistribute it and/or modify
|
---|
121 | it under the same terms as Perl itself.
|
---|
122 |
|
---|
123 |
|
---|
124 | Enjoy!
|
---|