- or download this
C:\>perl -MLWP::Debug=+ foobar.pl
LWP::UserAgent::new: ()
...
User-Agent: My agent 10
***********snip**********
- or download this
sub write_request {
my ($self, $request, $socket, $fullpath, $arg, $timeout, $proxy) = @
+_;
***********snip**********
my $h = $request->headers->clone;
***********snip**********
- or download this
***********snip**********
my ($agent, $from, $timeout, $cookie_jar,
...
$request->init_header('User-Agent' => $agent) if $agent;
***********snip**********