I have Perl & LWP, but can't find a reference to following a link with a
target.
I have a getpage sub that works for all links except this one:
<a href="//ftp.thesite.com/default.asp?memno=69361" target="_blank">
When my sub gets this link, it returns a 500 error.
This is my sub:
sub getpage {
my $url = $_[0];
my $ua = $_[1];
if ($url !~ /https\:/){
$url = "https\:".$url;
}
my $req = HTTP::Request->new(GET => $url, $headers);
my $response = $ua->request($req);
return $response;
}
How do I make the ua "spawn" an new ua with that link?
David Gerler
Gerler Enterprises
PO BOX 16357
Chesapeake VA 23328
http://www.GerlerEnterprises.com/
Nationwide Dial-up from $12.45
http://www.EasySitesForLess.com/