meanroc has asked for the wisdom of the Perl Monks concerning the following question:
Hello guys,I want to print the source code of a website with this code:
#!/usr/bin/perl use warnings; use strict; use LWP; my $alvo; chomp($alvo=<STDIN>); my $url="$alvo"; my $lwp=LWP::UserAgent->new; my $resultado=$lwp->get ($url); my @res=$resultado->content; foreach(@res){ print "$_"; }
And in the <STDIN> I put "http://www.meuhumor.com.br", and when I run, compiles a source code with the error 1010 "enable cookie", how do I enable the cookie? Tks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Enable cookie
by atcroft (Abbot) on Jan 27, 2014 at 22:36 UTC | |
|
Re: Enable cookie (javascript )
by Anonymous Monk on Jan 28, 2014 at 00:30 UTC | |
by Anonymous Monk on Jan 28, 2014 at 00:33 UTC |