Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I tried my perldoc -q UserAgent and it says no info available so asking here what does the below UserAgent part doing? And what do I need to fill in with some of the agent values for a script on Windows NT workstation???
use strict; use LWP::UserAgent; my $from_addr = 'what goes here?'; my $agent_name = 'scriptname.pl'; # name of script?? my $timeout = 5; my $ua = LWP::UserAgent->new; $ua->agent("$agent_name " . $ua->agent); $ua->from($from_addr); $ua->timeout($timeout);

2006-07-05 Retitled by planetscape, as per Monastery guidelines: one-word (or module-only) titles pose a hazard to site navigation

( keep:0 edit:8 reap:0 )

Original title: 'UserAgent'

Replies are listed 'Best First'.
Re: What does LWP::UserAgent do?
by valdez (Monsignor) on Aug 28, 2002 at 10:20 UTC

    Try with perldoc LWP::UserAgent. If you need an overview, please read LWP, especially section about "The User Agent"

    HTH, Valerio

Re: What does LWP::UserAgent do?
by moxliukas (Curate) on Aug 28, 2002 at 10:34 UTC
Re: What does LWP::UserAgent do?
by PodMaster (Abbot) on Aug 28, 2002 at 10:21 UTC
    UserAgent does not exist. Try perldoc LWP::UserAgent. Also, read How to RTFM

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: What does LWP::UserAgent do?
by mrguy123 (Hermit) on Jul 05, 2006 at 09:51 UTC
    Try this link: http://search.cpan.org/~gaas/libwww-perl-5.805/lib/LWP/UserAgent.pm