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
In reply to Enable cookie by meanroc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |