LWP::UserAgent
Requests over the network are performed with LWP::UserAgent objects. To create an LWP::UserAgent object, use:
$ua = LWP::UserAgent->new( );
You give the object a request, which it uses to contact the
server, and the information you requested is returned. The most often used method in this module is
request
, which contacts a server
and returns the result of your query. Other methods in this module
change the way request
behaves.
You can change the timeout value, customize the value of the
User-Agent header, or use a proxy server.
The following methods are supplied by LWP::UserAgent.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.