Gossamer Forum
Home : General : Perl Programming :

how to connect to other websites

Quote Reply
how to connect to other websites
hi,

I am not able to make connection to other websites(ex:http://www.rcsb.org/ ) except my local site i.e http://www.iitk.ac.in ,since here I am using : vsnlproxy ,port 3128

and the code is:
#!/usr/bin/perl

use WWW::Mechanize;

$url = "http://www.rcsb.org/";

my $mechanize = WWW::Mechanize->new(autocheck => 1);

$mechanize->get($url);
print $mechanize->content( format => "text" );

my @links = $mechanize->links;

foreach my $link (@links) {
Retrieve the link text
my $name = $link->text;
print $name,"\n";
}