in reply to Using LWP::Debug conns() function
After looking at the LWP documentation, I enable PERL_LWP_USE_HTTP_10, and try again, and again no output.perl -MLWP::Debug=+conns -MLWP::Simple -e get(shift) http://perl.org
Then I remember LWP::Simple is simple (grrr), so I adapt your sample and try again (oy)
and this time it works :)#!/usr/bin/perl -w use strict; use LWP; use LWP::Debug qw(+conns); local $ENV{PERL_LWP_USE_HTTP_10} = 1; my $agent = LWP::UserAgent->new(); my $url = 'http://www.perlmonks.org'; my $response = $agent->get($url);
I would(you should) ask the author/maintainer about this, as it looks like something he's overlooked.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using LWP::Debug conns() function
by nysus (Parson) on Nov 19, 2005 at 21:29 UTC | |
|
Re^2: Using LWP::Debug conns() function
by nysus (Parson) on Nov 19, 2005 at 21:39 UTC |