mailmeakhila has asked for the wisdom of the Perl Monks concerning the following question:
my $cookie_jar = HTTP::Cookies->new; $cookie_jar->clear; my $ua = LWP::UserAgent->new; $ua->cookie_jar($cookie_jar); $ua->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'); $ua->timeout(30); my $response = $ua->get("http://www.mywebsite.com"); print $response->code; print $response->message;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 403 forbidden error
by Old_Gray_Bear (Bishop) on Apr 03, 2012 at 20:43 UTC | |
by mailmeakhila (Sexton) on Apr 03, 2012 at 20:45 UTC | |
by JavaFan (Canon) on Apr 03, 2012 at 21:52 UTC |