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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩国产精品大片| 久久国产精品72免费观看| 色综合欧美在线视频区| 亚洲五月六月丁香激情| 日韩丝袜美女视频| 国产不卡视频在线播放| 国产精品免费av| 欧美va亚洲va| 日本韩国欧美在线| 蜜臀精品久久久久久蜜臀| 欧美激情一区二区三区在线| 91黄色免费网站| 成人动漫在线一区| 精品一区二区免费在线观看| 国产精品国产三级国产普通话蜜臀| 在线观看不卡一区| 丰满亚洲少妇av| 国产乱人伦精品一区二区在线观看 | 欧美日韩精品高清| 国产精品一区二区你懂的| 婷婷国产v国产偷v亚洲高清| 国产精品久久久久aaaa| 国产亚洲制服色| 日韩欧美123| 91精品啪在线观看国产60岁| 色婷婷久久久亚洲一区二区三区| 国产精品一二一区| 国产精品99久久久久久久女警| 天堂资源在线中文精品| 一区二区三区欧美| 玉足女爽爽91| 亚洲电影一区二区| 亚洲自拍欧美精品| 日韩精品国产精品| 日韩精品国产欧美| 国产精品一区2区| 白白色 亚洲乱淫| 91久久精品一区二区| 欧美日韩色综合| 精品播放一区二区| 国产精品久久久久久久久晋中| 久久精品一区八戒影视| 国产精品女主播在线观看| 亚洲精品日韩一| 日韩在线一二三区| 成人污视频在线观看| 在线免费观看视频一区| 欧美一区二区三区在线视频| 久久综合九色综合欧美98 | 日本一区二区三区电影| 亚洲视频网在线直播| 美女在线观看视频一区二区| 国产在线不卡一卡二卡三卡四卡| www.激情成人| 精品欧美久久久| 亚洲国产精品久久久久婷婷884| 免费xxxx性欧美18vr| 色哟哟一区二区| 欧美激情综合五月色丁香小说| 午夜精品一区二区三区电影天堂| 极品尤物av久久免费看| 欧美日韩一区二区欧美激情| 国产色产综合色产在线视频| 秋霞午夜鲁丝一区二区老狼| 99久久国产免费看| 中文字幕一区二区三区不卡在线| 精品夜夜嗨av一区二区三区| 欧美性做爰猛烈叫床潮| 亚洲欧美综合色| 91日韩精品一区| 国产精品电影院| 99麻豆久久久国产精品免费优播| 久久久亚洲国产美女国产盗摄| 另类小说图片综合网| 日韩精品最新网址| 免费成人av在线| 国产日韩欧美制服另类| 国产寡妇亲子伦一区二区| 欧美激情中文字幕| 99精品偷自拍| 亚洲成人精品影院| 欧美一区二区三区视频免费播放| 日韩中文字幕一区二区三区| 日韩免费视频线观看| 国产伦精品一区二区三区免费| 久久久精品tv| 日本韩国精品一区二区在线观看| 亚洲综合成人网| 精品国产91久久久久久久妲己| 国产精品一区二区三区四区| 国产精品高清亚洲| 56国语精品自产拍在线观看| 国产中文一区二区三区| 一区二区成人在线| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 粉嫩av一区二区三区| 一区二区理论电影在线观看| 精品免费国产二区三区| 色婷婷综合久久久久中文一区二区| 石原莉奈一区二区三区在线观看 | 国产精品丝袜一区| 777a∨成人精品桃花网| 色偷偷88欧美精品久久久| 极品美女销魂一区二区三区免费 | 亚洲成a人在线观看| 亚洲欧洲日本在线| 中文字幕+乱码+中文字幕一区| 欧美精选一区二区| 欧美影视一区二区三区| 成人av网址在线观看| 国产高清精品久久久久| 麻豆国产一区二区| 久88久久88久久久| 青草av.久久免费一区| 日韩av电影免费观看高清完整版在线观看| 国产欧美一区二区三区在线看蜜臀| 欧美一区二区黄| 欧美一级片在线看| 欧美成人一区二区| 精品久久久久久久久久久久久久久| 欧美精品vⅰdeose4hd| 欧美日高清视频| 欧美不卡在线视频| 精品对白一区国产伦| 国产日韩欧美在线一区| 亚洲国产激情av| 亚洲午夜视频在线观看| 蜜桃一区二区三区四区| 国产成人免费高清| 91丨九色丨蝌蚪丨老版| 欧美日韩视频不卡| 国产欧美日本一区二区三区| 亚洲色图丝袜美腿| 秋霞电影网一区二区| 成人激情电影免费在线观看| 91久久国产综合久久| 日韩精品资源二区在线| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 亚洲综合一区二区| 成人免费看片app下载| 欧美日韩精品一区二区天天拍小说 | 国产精品电影一区二区三区| 伊人夜夜躁av伊人久久| 国产一区二区三区精品视频| 91电影在线观看| 国产网红主播福利一区二区| 亚洲成人福利片| 欧美伊人久久大香线蕉综合69 | 91麻豆免费观看| 中文成人av在线| 国产大陆精品国产| 久久中文娱乐网| 精品亚洲欧美一区| 欧美电视剧免费全集观看| 人人超碰91尤物精品国产| 337p亚洲精品色噜噜| 亚洲一级电影视频| 在线观看一区二区视频| 亚洲欧美另类图片小说| 日本久久一区二区| 亚洲国产裸拍裸体视频在线观看乱了 | 伦理电影国产精品| 精品少妇一区二区三区| 国产真实乱偷精品视频免| 中文字幕精品一区| 色婷婷久久99综合精品jk白丝 | 欧美激情中文字幕| 色一情一乱一乱一91av| 午夜电影网一区| 久久综合久久鬼色中文字| 粉嫩欧美一区二区三区高清影视| 成人欧美一区二区三区白人| 91丨porny丨国产| 亚洲.国产.中文慕字在线| 日韩久久精品一区| 在线看日本不卡| 精品在线亚洲视频| 亚洲精品少妇30p| 久久久精品免费免费| 欧美日韩免费高清一区色橹橹| 久久精品国产免费| 亚洲精品日产精品乱码不卡| 久久久亚洲高清| 欧美日韩精品二区第二页| 99免费精品在线观看| 久久99国产精品久久| 日韩av一级片| 亚洲欧洲性图库| 久久精品在这里| 欧美第一区第二区| 777奇米成人网| 欧美乱妇15p| 欧美丰满嫩嫩电影| 91色综合久久久久婷婷| 国产91富婆露脸刺激对白| 国产精品一区二区91| 国产福利一区二区三区视频 | 免费成人av资源网| 麻豆精品新av中文字幕| 久久精品噜噜噜成人av农村|