I'm using the following code:
my $url = "http://www.wiredon.net/";
my @page = get($url);
print "Content-type: text/plain\n\n";
foreach (@page) {
print;
}
}Should that not print the HTML?....because it shows the page properly as if you were visiting it with your browser. Using text/plain and text/html both give the same result.
I'm sure in the past when I've used text/plain it has printed the HTML code rather that the page itself.
Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com
Code:
sub main { my $url = "http://www.wiredon.net/";
my @page = get($url);
print "Content-type: text/plain\n\n";
foreach (@page) {
print;
}
}
I'm sure in the past when I've used text/plain it has printed the HTML code rather that the page itself.
Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com