Sunday, November 06, 2005

302 errors with perl-lwp

With perl LWP you are trying to write a thing that will allow you to scape a site that
makes use of post and then puts throws a 302 at you in an effort to stop scapers?

my $ua = LWP::UserAgent->new();

push @{ $ua->requests_redirectable }, 'POST';

would do the trick

0 Comments:

Post a Comment

<< Home