亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lwp.pm

?? ARM上的如果你對底層感興趣
?? PM
?? 第 1 頁 / 共 2 頁
字號:
#
# $Id: LWP.pm,v 1.82 1998/08/04 10:47:35 aas Exp $

package LWP;

$VERSION = "5.36";
sub Version { $VERSION; }

require 5.004;
require LWP::UserAgent;  # this should load everything you need

1;

__END__

=head1 NAME

LWP - Library for WWW access in Perl

=head1 SYNOPSIS

  use LWP;
  print "This is libwww-perl-$LWP::VERSION\n";


=head1 DESCRIPTION

Libwww-perl is a collection of Perl modules which provides a simple
and consistent 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, thus libwww-perl said to be a WWW
client library. The library also contain modules that are of more
general use.

Most modules in this library are object oriented.  The user
agent, requests sent and responses received from the WWW server are
all represented by objects.  This makes a simple and powerful
interface to these services.  The interface should be easy to extend
and customize for your needs.

The main features of the library are:

=over 3

=item *

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

=item *

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.

=item *

The library be used through the full object oriented interface or
through a very simple procedural interface.

=item *

Support the basic and digest authorization schemes.

=item *

Transparent redirect handling.

=item *

Supports access through proxy servers.

=item *

URL handling (both absolute and relative URLs are supported).

=item *

A parser for F<robots.txt> files and a framework for constructing robots.

=item *

The library can cooperate with Tk.  A simple Tk-based GUI browser
called 'tkweb' is distributed with the Tk extension for perl.

=item *

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

=item *

It can deal with HTTP cookies.

=item *

A simple command line client application called C<lwp-request>.

=back


=head1 HTTP STYLE COMMUNICATION


The libwww-perl library is based on HTTP style communication. This
section try to describe what that means.

Let us start with this quote from the HTTP specification document
<URL:http://www.w3.org/pub/WWW/Protocols/>:

=over 3

=item

The HTTP protocol is based on a request/response paradigm. A client
establishes a connection with a server and sends a request to the
server in the form of a request method, URI, and protocol version,
followed by a MIME-like message containing request modifiers, client
information, and possible body content. The server responds with a
status line, including the message's protocol version and a success or
error code, followed by a MIME-like message containing server
information, entity meta-information, and possible body content.

=back

What this means to libwww-perl is that communication always take place
through these steps: First a I<request> object is created and
configured. This object is then passed to a server and we get a
I<response> object in return that we can examine. A request is always
independent of any previous requests, i.e. the service is stateless.
The same simple model is used for any kind of service we want to
access.

For example, if we want to fetch a document from a remote file server,
then we send it a request that contains a name for that document and
the response will contain the document itself.  If we access a search
engine, then the content of the request will contain the query
parameters and the response will contain the query result.  If we want
to send a mail message to somebody then we send a request object which
contains our message to the mail server and the response object will
contain an acknowledgment that tells us that the message has been
accepted and will be forwarded to the recipient(s).

It is as simple as that!


=head2 The Request Object

The request object has the class name C<HTTP::Request> in
libwww-perl. The fact that the class name use C<HTTP::> as a name
prefix only implies that we use the HTTP model of communication. It
does not limit the kind of services we can try to pass this I<request>
to.  For instance, we will send C<HTTP::Request>s both to ftp and
gopher servers, as well as to the local file system.

The main attributes of the request objects are:

=over 3

=item *

The B<method> is a short string that tells what kind of
request this is.  The most used methods are B<GET>, B<PUT>,
B<POST> and B<HEAD>.

=item *

The B<url> is a string denoting the protocol, server and
the name of the "document" we want to access.  The B<url> might
also encode various other parameters.

=item *

The B<headers> contain additional information about the
request and can also used to describe the content.  The headers
is a set of keyword/value pairs.

=item *

The B<content> is an arbitrary amount of data.

=back

=head2 The Response Object

The response object has the class name C<HTTP::Response> in
libwww-perl.  The main attributes of objects of this class are:

=over 3

=item *

The B<code> is a numerical value that encode the overall
outcome of the request.

=item *

The B<message> is a short (human readable) string that
corresponds to the I<code>.

=item *

The B<headers> contain additional information about the
response and they also describe the content.

=item *

The B<content> is an arbitrary amount of data.

=back

Since we don't want to handle all possible I<code> values directly in
our programs, the libwww-perl response object have methods that can be
used to query what kind of response this is.  The most commonly used
response classification methods are:

=over 3

=item is_success()

The request was was successfully received, understood or accepted.

=item is_error()

The request failed.  The server or the resource might not be
available, access to the resource might be denied or other things might
have failed for some reason.

=back

=head2 The User Agent

Let us assume that we have created a I<request> object. What do we
actually do with it in order to receive a I<response>?

The answer is that you pass it on to a I<user agent> object and this
object will take care of all the things that need to be done
(low-level communication and error handling). The user agent will give
you back a I<response> object. The user agent represents your
application on the network and it provides you with an interface that
can accept I<requests> and will return I<responses>.

You should think about the user agent as an interface layer between
your application code and the network.  Through this interface you are
able to access the various servers on the network.

The libwww-perl class name for the user agent is
C<LWP::UserAgent>. Every libwww-perl application that wants to
communicate should create at least one object of this kind. The main
method provided by this object is request(). This method takes an
C<HTTP::Request> object as argument and will (eventually) return a
C<HTTP::Response> object.

The user agent has many other attributes that lets you
configure how it will interact with the network and with your
application code.

=over 3

=item *

The B<timeout> specify how much time we give remote servers in
creating responses before the library disconnect and creates an
internal I<timeout> response.

=item *

The B<agent> specify the name that your application should use when it
presents itself on the network.

=item *

The B<from> attribute can be set to the e-mail address of the person
responsible for running the application.  If this is set, then the
address will be sent to the servers with every request.

=item *

The B<parse_head> specify whether we should initialize response
headers from the E<lt>head> section of HTML documents.

=item *

The B<proxy> and B<no_proxy> specify if and when communication should
go through a proxy server. <URL:http://www.w3.org/pub/WWW/Proxies/>

=item *

The B<credentials> provide a way to set up user names and
passwords that is needed to access certain services.

=back

Many applications would want even more control over how they interact
with the network and they get this by specializing the
C<LWP::UserAgent> by sub-classing.  The library provide a

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区2区视频在线观看| 91麻豆精品国产91久久久久久| 91精品久久久久久蜜臀| 一区二区三区中文字幕电影| 色天天综合久久久久综合片| 亚洲福利视频三区| 日韩片之四级片| 成人午夜视频福利| 亚洲精品国产第一综合99久久| 欧美性视频一区二区三区| 亚洲动漫第一页| 欧美日韩在线三级| 亚洲高清免费在线| 久久综合九色欧美综合狠狠| 99久久精品国产导航| 欧美国产一区二区在线观看 | 一区二区三区在线播放| 欧美视频一区二区三区四区| 亚洲一区二区不卡免费| 26uuu精品一区二区在线观看| 成人av网在线| 久久国产夜色精品鲁鲁99| 亚洲欧美日韩国产另类专区| 国产日韩欧美综合在线| 91香蕉视频污在线| 国产一区二区三区最好精华液| 有码一区二区三区| 久久日一线二线三线suv| 欧美人成免费网站| 欧美日韩精品欧美日韩精品一| 国v精品久久久网| 午夜久久久影院| 亚洲人吸女人奶水| 国产精品天美传媒| 中文字幕一区二区三区蜜月| 一区二区三区免费在线观看| 亚洲女人小视频在线观看| 亚洲成年人网站在线观看| 天天影视网天天综合色在线播放| 一区二区三区 在线观看视频| 一区二区高清视频在线观看| 天使萌一区二区三区免费观看| 看片的网站亚洲| 成人免费视频视频在线观看免费| 一本到三区不卡视频| 日韩免费观看2025年上映的电影| 欧美国产一区二区| 日韩在线一区二区三区| 韩国午夜理伦三级不卡影院| 色一区在线观看| 久久人人爽爽爽人久久久| 一区二区三区 在线观看视频| 国产高清久久久| 91精品麻豆日日躁夜夜躁| 亚洲精品国产无套在线观| 蜜臀av在线播放一区二区三区| 免费观看成人鲁鲁鲁鲁鲁视频| 免费黄网站欧美| 在线观看亚洲精品| 国产亚洲精久久久久久| 亚洲小少妇裸体bbw| 国产成人精品免费视频网站| 在线一区二区三区四区五区 | 99久久婷婷国产精品综合| 欧美日韩国产经典色站一区二区三区 | 免费欧美在线视频| 日本韩国一区二区三区视频| 欧美一级欧美一级在线播放| 亚洲黄色免费网站| 成人福利视频网站| 久久亚洲二区三区| 国产最新精品精品你懂的| 欧美在线观看视频在线| 亚洲丝袜美腿综合| 国产一区二区精品久久99| 欧美精品精品一区| 国产精品高潮呻吟| 成人免费视频一区二区| 精品国产乱码久久久久久夜甘婷婷| 亚洲欧美日韩国产成人精品影院| 97久久精品人人做人人爽 | av亚洲产国偷v产偷v自拍| 国产片一区二区| 99久久99久久精品免费看蜜桃| 精品电影一区二区| 国产在线国偷精品产拍免费yy| 久久综合国产精品| 成人免费视频视频| 一区二区三区在线观看欧美| 精品视频123区在线观看| 亚洲成av人片一区二区梦乃 | 91老司机福利 在线| 亚洲综合999| 日韩一二三四区| 国产suv精品一区二区三区| 国产亚洲福利社区一区| 99r国产精品| 六月丁香婷婷久久| 国产精品久久久久影视| 5月丁香婷婷综合| 国产精品一区在线| 亚洲自拍偷拍麻豆| 久久在线免费观看| 欧美日韩在线直播| 岛国一区二区三区| 韩国精品久久久| 亚洲综合成人在线视频| www国产成人| 91麻豆精品国产91久久久久久| 成人精品鲁一区一区二区| 久久99九九99精品| 亚洲激情中文1区| 欧美韩国日本不卡| 欧美激情一区二区三区蜜桃视频| 欧美四级电影网| 91影视在线播放| 成人v精品蜜桃久久一区| 激情综合五月婷婷| 国产成人a级片| 99精品在线免费| 日本久久一区二区三区| 欧美日韩国产一二三| 精品捆绑美女sm三区| 国产蜜臀97一区二区三区| 国产精品久久精品日日| 亚洲日本丝袜连裤袜办公室| 日韩制服丝袜av| 97se狠狠狠综合亚洲狠狠| 欧美日韩电影在线| 国产精品久久久久永久免费观看 | 国产欧美一区二区三区在线看蜜臀| 欧美成人精品3d动漫h| 中文字幕一区二区视频| 午夜激情久久久| 成人av网站免费观看| 日韩女同互慰一区二区| 伊人婷婷欧美激情| 国产一区二区三区电影在线观看| 欧美在线一二三| 中文字幕色av一区二区三区| 精品在线观看视频| 欧美色男人天堂| 亚洲色图在线播放| 国产精品伊人色| 精品国产成人在线影院| 婷婷综合在线观看| 欧美一级二级三级蜜桃| 日日欢夜夜爽一区| 欧美日韩精品二区第二页| 久久综合一区二区| 久久精品国产99久久6| 欧美一级二级三级蜜桃| 蜜臀av性久久久久av蜜臀妖精 | 成人av在线电影| 亚洲乱码国产乱码精品精小说 | av不卡免费在线观看| 中文字幕va一区二区三区| 大桥未久av一区二区三区中文| 久久久精品人体av艺术| 国产精品一卡二卡| 亚洲国产精品国自产拍av| 国产成人精品在线看| 国产精品萝li| 欧美日韩国产小视频在线观看| 亚瑟在线精品视频| 日韩欧美国产一区二区三区| 国产一区免费电影| 国产精品国产三级国产有无不卡| 91天堂素人约啪| 婷婷六月综合网| 久久久精品综合| 欧美三级在线视频| 国产在线精品视频| 亚洲一区二区三区四区五区黄| 欧美电影免费观看高清完整版在线 | 青椒成人免费视频| 亚洲国产高清aⅴ视频| 在线综合亚洲欧美在线视频| 不卡一区中文字幕| 老司机午夜精品| 亚洲一区二区三区四区在线 | 91日韩在线专区| 久久成人精品无人区| 亚洲大片精品永久免费| 亚洲精品欧美激情| 国产精品久久久久婷婷二区次| 日韩一卡二卡三卡四卡| 本田岬高潮一区二区三区| 狠狠色丁香九九婷婷综合五月| 亚洲在线观看免费视频| 自拍av一区二区三区| 日韩精品一区二区三区老鸭窝| 日韩一区二区三区在线观看| 91精品国产综合久久香蕉麻豆| 欧美探花视频资源| 欧美日韩中文另类| 欧美日韩一区在线| 欧美成人在线直播| 精品第一国产综合精品aⅴ| 久久久久久久久久久久电影|