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

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

?? lwp.pm

?? ARM上的如果你對底層感興趣
?? PM
?? 第 1 頁 / 共 2 頁
字號:
specialization called C<LWP::RobotUA> that is used by robot
applications.

=head2 An Example

This example shows how the user agent, a request and a response are
represented in actual perl code:

  # Create a user agent object
  use LWP::UserAgent;
  $ua = new LWP::UserAgent;
  $ua->agent("AgentName/0.1 " . $ua->agent);

  # Create a request
  my $req = new HTTP::Request POST => 'http://www.perl.com/cgi-bin/BugGlimpse';
  $req->content_type('application/x-www-form-urlencoded');
  $req->content('match=www&errors=0');

  # Pass request to the user agent and get a response back
  my $res = $ua->request($req);

  # Check the outcome of the response
  if ($res->is_success) {
      print $res->content;
  } else {
      print "Bad luck this time\n";
  }

The $ua is created once when the application starts up.  New request
objects are normally created for each request sent.


=head1 NETWORK SUPPORT

This section goes through the various protocol schemes and describe
the HTTP style methods that are supported and the headers that might
have any effect.

For all requests, a "User-Agent" header is added and initialized from
the $ua->agent value before the request is handed to the network
layer.  In the same way, a "From" header is initialized from the
$ua->from value.

For all responses, the library will add a header called "Client-Date".
This header will encode the time when the response was received by
your application.  This format and semantics of the header is just
like the server created "Date" header.  You can also encounter other
"Client-XXX" headers.  They are all generated by the library
internally and not something really passed on from the servers.

=head2 HTTP Requests

HTTP request are really just handed off to an HTTP server and it will
decide what happens.  Few servers implement methods beside the usual
"GET", "HEAD", "POST" and "PUT" but CGI-scripts can really implement
any method they like.

If the server is not available then the library will generate an
internal error response.

The library automatically adds a "Host" and a "Content-Length" header
to the HTTP request before it is sent over the network.

For GET request you might want to add the "If-Modified-Since" header
to make the request conditional.

For POST request you should add the "Content-Type" header.  When you
try to emulate HTML E<lt>FORM> handling you should usually let the value
of the "Content-Type" header be "application/x-www-form-urlencoded".
See L<lwpcook> for examples of this.

The libwww-perl HTTP implementation currently support the HTTP/1.0
protocol.  HTTP/0.9 servers are also handled correctly.

The library allows you to access proxy server through HTTP.  This
means that you can set up the library to forward all types of request
through the HTTP protocol module.  See L<LWP::UserAgent> for
documentation of this.


=head2 HTTPS Requests

HTTPS requests are HTTP requests over an encrypted network connection
using the SSL protocol developed by Netscape.  Everything about HTTP
requests above also hold for HTTPS requests.  In addition the library
will add the headers "Client-SSL-Cipher", "Client-SSL-Cert-Subject" and
"Client-SSL-Cert-Issuer" to the response.  These headers denote the
encryption method used and the name of the server owner.

The request can contain the header "If-SSL-Cert-Subject" in order to
make the request conditional on the content of the server certificate.
If the certificate subject does not match, no request is sent to the
server and an internally generated error response is returned.  The
value of the "If-SSL-Cert-Subject" header is interpreted as a Perl
regular expression.


=head2 FTP Requests

The library currently support GET, HEAD and PUT requests.  GET will
retrieve a file or a directory listing from an FTP server.  PUT will
store a file on a ftp server.

You can specify a ftp account for servers that want this in addition
user name and password.  This is specified by passing an "Account"
header in the request.

User name/password can be specified using basic authorization or be
encoded in the URL.  Bad logins return an UNAUTHORIZED response with
"WWW-Authenticate: Basic" and can be treated as basic authorization
for HTTP.

The library support ftp ASCII transfer mode by specifying the "type=a"
parameter in the URL.

Directory listings are by default returned unprocessed (as returned
from the ftp server) with the content media type reported to be
"text/ftp-dir-listing". The C<File::Listing> module provide functionality
for parsing of these directory listing.

The ftp module is also able to convert directory listings to HTML and
this can be requested via the standard HTTP content negotiation
mechanisms (add an "Accept: text/html" header in the request if you
want this).

The normal file retrievals, the "Content-Type" is guessed based on the
file name suffix. See L<LWP::MediaTypes>.

The "If-Modified-Since" request header works for servers that implement
the MDTM command.  It will probably not work for directory listings though.

Example:

  $req = HTTP::Request->new(GET => 'ftp://me:passwd@ftp.some.where.com/');
  $req->header(Accept => "text/html, */*;q=0.1");

=head2 News Requests

Access to the USENET News system is implemented through the NNTP
protocol.  The name of the news server is obtained from the
NNTP_SERVER environment variable and defaults to "news".  It is not
possible to specify the hostname of the NNTP server in the news:-URLs.

The library support GET and HEAD to retrieve news articles through the
NNTP protocol.  You can also post articles to newsgroups by using
(surprise!) the POST method.

GET on newsgroups is not implemented yet.

Examples:

  $req = HTTP::Request->new(GET => 'news:abc1234@a.sn.no');

  $req = HTTP::Request->new(POST => 'news:comp.lang.perl.test');
  $req->header(Subject => 'This is a test',
               From    => 'me@some.where.org');
  $req->content(<<EOT);
  This is the content of the message that we are sending to
  the world.
  EOT


=head2 Gopher Request

The library supports the GET and HEAD method for gopher request.  All
request header values are ignored.  HEAD cheats and will return a
response without even talking to server.

Gopher menus are always converted to HTML.

The response "Content-Type" is generated from the document type
encoded (as the first letter) in the request URL path itself.

Example:

  $req = HTTP::Request->new(GET => 'gopher://gopher.sn.no/');



=head2 File Request

The library supports GET and HEAD methods for file requests.  The
"If-Modified-Since" header is supported.  All other headers are
ignored.  The I<host> component of the file URL must be empty or set
to "localhost".  Any other I<host> value will be treated as an error.

Directories are always converted to an HTML document.  For normal
files, the "Content-Type" and "Content-Encoding" in the response are
guessed based on the file suffix.

Example:

  $req = HTTP::Request->new(GET => 'file:/etc/passwd');


=head2 Mailto Request

You can send (aka "POST") mail messages using the library.  All
headers specified for the request are passed on to the mail system.
The "To" header is initialized from the mail address in the URL.

Example:

  $req = HTTP::Request->new(POST => 'mailto:libwww-perl-request@ics.uci.edu');
  $req->header(Subject => "subscribe");
  $req->content("Please subscribe me to the libwww-perl mailing list!\n");


=head1 OVERVIEW OF CLASSES AND PACKAGES

This table should give you a quick overview of the classes provided by the
library. Indentation shows class inheritance.

 LWP::MemberMixin   -- Access to member variables of Perl5 classes
   LWP::UserAgent   -- WWW user agent class
     LWP::RobotUA   -- When developing a robot applications
   LWP::Protocol          -- Interface to various protocol schemes
     LWP::Protocol::http  -- http:// access
     LWP::Protocol::file  -- file:// access
     LWP::Protocol::ftp   -- ftp:// access
     ...

 LWP::Authen::Basic -- Handle 401 and 407 responses
 LWP::Authen::Digest

 HTTP::Headers      -- MIME/RFC822 style header (used by HTTP::Message)
 HTTP::Message      -- HTTP style message
   HTTP::Request    -- HTTP request
   HTTP::Response   -- HTTP response
 HTTP::Daemon       -- A HTTP server class

 URI::URL           -- Uniform Resource Locators

 WWW::RobotRules    -- Parse robots.txt files
   WWW::RobotRules::AnyDBM_File -- Persistent RobotRules

The following modules provide various functions and definitions.

 LWP                -- This file.  Library version number and documentation.
 LWP::MediaTypes    -- MIME types configuration (text/html etc.)
 LWP::Debug         -- Debug logging module
 LWP::Simple        -- Simplified procedural interface for common functions
 HTTP::Status       -- HTTP status code (200 OK etc)
 HTTP::Date         -- Date parsing module for HTTP date formats
 HTTP::Negotiate    -- HTTP content negotiation calculation
 File::Listing      -- Parse directory listings


=head1 MORE DOCUMENTATION

All modules contain detailed information on the interfaces they
provide.  The I<lwpcook> manpage is the libwww-perl cookbook that contain
examples of typical usage of the library.  You might want to take a
look at how the scripts C<lwp-request>, C<lwp-rget> and C<lwp-mirror>
are implemented.

=head1 BUGS

The library can not handle multiple simultaneous requests yet.  Also,
check out what's left in the TODO file.

=head1 ACKNOWLEDGEMENTS

This package owes a lot in motivation, design, and code, to the
libwww-perl library for Perl 4, maintained by Roy Fielding
E<lt>fielding@ics.uci.edu>.

That package used work from Alberto Accomazzi, James Casey, Brooks
Cutter, Martijn Koster, Oscar Nierstrasz, Mel Melchner, Gertjan van
Oosten, Jared Rhine, Jack Shirazi, Gene Spafford, Marc VanHeyningen,
Steven E. Brenner, Marion Hakanson, Waldemar Kebsch, Tony Sanders, and
Larry Wall; see the libwww-perl-0.40 library for details.

The primary architect for this Perl 5 library is Martijn Koster and
Gisle Aas, with lots of help from Graham Barr, Tim Bunce, Andreas
Koenig, Jared Rhine, and Jack Shirazi.


=head1 COPYRIGHT

  Copyright 1995-1998, Gisle Aas
  Copyright 1995, Martijn Koster

This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

=head1 AVAILABILITY

The latest version of this library is likely to be available from:

 http://www.sn.no/libwww-perl/

The best place to discuss this code is on the
<libwww-perl@ics.uci.edu> mailing list.

=cut

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草原综合久久大伊人精品| 91麻豆精品国产91久久久资源速度| 久久综合九色综合欧美亚洲| 奇米精品一区二区三区在线观看| 欧美男人的天堂一二区| 五月婷婷激情综合| 日韩欧美在线一区二区三区| 麻豆精品在线视频| 久久日一线二线三线suv| 成人午夜视频福利| 亚洲美女屁股眼交3| 欧美精品一二三| 精品制服美女丁香| 国产精品美女一区二区在线观看| 91亚洲精品久久久蜜桃| 五月天视频一区| 久久久久国产精品人| 99久久国产综合精品色伊| 亚洲成av人影院| 久久综合九色综合97_久久久 | 欧美激情一区二区三区四区| 99久久免费精品高清特色大片| 亚洲综合丁香婷婷六月香| 91精品国产综合久久精品麻豆| 国产美女视频91| 亚洲色欲色欲www在线观看| 91精品国产乱| 91免费视频观看| 九色综合国产一区二区三区| 午夜精品一区二区三区电影天堂 | 91精品国产91综合久久蜜臀| 精品亚洲成a人| 亚洲天堂网中文字| 制服丝袜在线91| 成人av电影在线观看| 日韩av网站在线观看| 国产精品成人一区二区艾草| 制服.丝袜.亚洲.中文.综合| 99re热视频这里只精品| 久久er99热精品一区二区| 一区二区三区波多野结衣在线观看| 日韩免费性生活视频播放| 91久久精品午夜一区二区| 国产高清久久久久| 日韩不卡免费视频| 亚洲亚洲精品在线观看| 国产精品天干天干在线综合| 制服丝袜在线91| 色婷婷av一区| 成人黄色免费短视频| 国精产品一区一区三区mba视频| 洋洋av久久久久久久一区| 国产精品区一区二区三区| 精品国产一区二区三区av性色 | 国产一区二区毛片| 日本三级亚洲精品| 午夜精品一区二区三区电影天堂| 国产精品看片你懂得| 国产亚洲一区二区三区四区| 91精品国产高清一区二区三区蜜臀| 日本道色综合久久| 99久久精品国产麻豆演员表| 国产不卡免费视频| 国产激情一区二区三区四区 | 亚洲人成网站影音先锋播放| 久久综合精品国产一区二区三区 | 久久影院午夜论| 日韩欧美一级二级| 日韩女优视频免费观看| 91精品国产综合久久久久久漫画| 欧美日韩亚洲综合在线| 欧美午夜片在线观看| 日本精品视频一区二区| 91婷婷韩国欧美一区二区| 99久久久久久99| 99久久国产综合精品色伊| 97久久精品人人做人人爽| 91网上在线视频| 色欧美日韩亚洲| 欧美日韩午夜在线视频| 欧美色图片你懂的| 777xxx欧美| 日韩欧美国产综合一区 | 欧美日韩在线免费视频| 欧美日韩国产高清一区二区三区 | aaa国产一区| 色中色一区二区| 欧美美女喷水视频| 在线综合视频播放| 欧美精品一区二区三区久久久| 精品福利视频一区二区三区| 久久综合九色综合97婷婷女人 | 日韩欧美一级二级三级| 欧美成人乱码一区二区三区| 26uuu精品一区二区三区四区在线| 久久嫩草精品久久久精品一| 国产精品网站在线观看| 亚洲自拍偷拍麻豆| 久久激情五月激情| 国产99久久久国产精品| 91麻豆国产自产在线观看| 欧美日韩aaa| 国产人妖乱国产精品人妖| 成人欧美一区二区三区| 亚瑟在线精品视频| 狠狠色2019综合网| 不卡的av电影| 日韩欧美一区二区视频| 日本一区二区三级电影在线观看| 亚洲最新视频在线播放| 久久精品免费观看| a在线播放不卡| 欧美一区二区三区公司| 国产精品午夜电影| 午夜免费欧美电影| 国产乱码字幕精品高清av| 色悠久久久久综合欧美99| 91精品国产麻豆| 最好看的中文字幕久久| 青椒成人免费视频| 91在线丨porny丨国产| 日韩美女主播在线视频一区二区三区 | 丁香另类激情小说| 欧美日韩精品高清| 国产精品亲子伦对白| 蜜臀av亚洲一区中文字幕| av亚洲精华国产精华精华 | 成人少妇影院yyyy| 欧美日韩国产高清一区二区三区| 欧美国产成人精品| 免费一区二区视频| 欧美在线啊v一区| 国产精品色噜噜| 理论电影国产精品| 欧美在线视频全部完| 国产精品欧美经典| 国产一区二区三区av电影| 欧美美女网站色| 一区二区三区日韩欧美| 成人性生交大合| 精品国产伦一区二区三区观看体验 | 91在线精品秘密一区二区| 欧美xxx久久| 日韩成人免费看| 欧美三级三级三级爽爽爽| 亚洲三级在线看| 成人av网站在线| 国产婷婷色一区二区三区四区| 美女视频免费一区| 欧美一区二区三区在线看| 一区二区三区欧美| 色综合中文字幕国产| 国产精品国产自产拍在线| 国产91高潮流白浆在线麻豆 | 欧美福利视频导航| 亚洲综合色视频| 91成人看片片| 亚洲尤物视频在线| 欧美色成人综合| 亚洲一区二区成人在线观看| 91网站在线观看视频| 亚洲精品日产精品乱码不卡| 91麻豆高清视频| 亚洲黄色av一区| 欧美午夜一区二区三区| 亚洲一区二区3| 欧美日韩国产中文| 日产欧产美韩系列久久99| 日韩一级二级三级| 美女性感视频久久| 精品国产亚洲在线| 国产成人亚洲综合a∨婷婷| 久久久综合视频| 国产99精品视频| 亚洲丝袜精品丝袜在线| 色成年激情久久综合| 夜夜夜精品看看| 91精品国产综合久久久蜜臀图片| 日韩高清不卡在线| 久久综合久久综合亚洲| 成人精品一区二区三区中文字幕| 国产精品视频九色porn| 91亚洲国产成人精品一区二三| 一区二区三区四区在线播放| 欧美日韩高清在线| 九九**精品视频免费播放| 欧美国产日韩在线观看| 色婷婷综合久久久| 午夜激情综合网| 精品国产免费人成在线观看| 不卡电影一区二区三区| 亚洲成人动漫在线免费观看| 日韩欧美一二三区| 成人av网址在线| 日韩国产欧美在线播放| 久久综合资源网| 在线精品亚洲一区二区不卡| 日本在线不卡一区| 国产精品毛片久久久久久| 欧美三区在线视频|