libwww-perl/libwww-perl — pull request #32 by putaotao (2012-11-08 13:55:07+00:00)
Title: can't parse_head for real request

use LWP::RobotUA;
use LWP::UserAgent;

#my $ua = LWP::UserAgent->new;
my $ua = LWP::RobotUA->new(agent => "MySpider", from => 'test@test.com');
$ua->delay(0);

my $url = "http://www.51youpin.com/shop/category-1010117.html";
my $resp = $ua->get($url);

print $resp->base, "\n";

Why RobotUA can't get the base and the UserAgent can. parse_head has problem.