Perl Http处理库-LWP
2014-07-12 10:46:47 阿炯

本站赞助商链接,请多关照。 LWP (the Library for World Wide Web in Perl) and Perl to fetch and process web pages.


lwp 是perl下的使用广泛的http操作库,它提供了诸多的api来对web服务进行处理,在众多的http操作模块中,它是综合能力很高的模块。它可以取得html内容并进行分析,模拟像get、post、head等请求方法,对动态服务发起请求,镜像下载文件等,它尽可能是模拟实现了浏览器的所有功能。

The libwww-perl collection is a set of Perl modules which provides a simple and consistent application programming interface (API) to the World-Wide Web. The main focus of the library is to provide classes and functions that allow you to write WWW clients. The library also contain modules that are of more general use and even classes that help you implement simple HTTP servers.

The user agent, requests sent and responses received from the WWW server are all represented by objects.

Features

Contains various reusable components (modules) that can be used separately or together.

Provides an object oriented model of HTTP-style communication. Within this framework we currently support access to http, https, gopher, ftp, news, file, and mailto resources.

Provides a full object oriented interface or a very simple procedural interface.

Supports the basic and digest authorization schemes.

Supports transparent redirect handling.

Supports access through proxy servers.

Provides parser for robots.txt files and a framework for constructing robots.

Supports parsing of HTML forms.

Implements HTTP content negotiation algorithm that can be used both in protocol modules and in server scripts (like CGI scripts).

Supports HTTP cookies.

Some simple command line clients, for instance lwp-request and lwp-download.

最新版本:6.0


项目主页:https://metacpan.org/pod/LWP