in reply to LWP problem

Try this code. It's retrieving the page but the link itself is throwing error "Error: please select a prediction method!".
#!C:/perl/bin/perl.exe use LWP::UserAgent; use HTTP::Request::Common; my $url = 'http://tools.immuneepitope.org/tools/bcell/bcell_Prediction +'; # Set up the ntlm client and then the base64 encoded ntlm handshake me +ssage my $ua = new LWP::UserAgent(); $request = GET $url; print "--Performing request now...-----------\n"; $response = $ua->request($request); print "--Done with request-------------------\n"; if ($response->is_success) {print "It worked!->" . $response->code . " +\n"} else {print "It didn't work!->" . $response->code . "\n"} + #Save the case to the local PC $response = $ua->mirror($url,"c:/test/perlmonks.htm");
I would suggest using WWW::IE::MechanizeWWW::IE::Mechanize or WWW::SeleniumWWW::Selenium as the page uses Javascript.

Replies are listed 'Best First'.
Re^2: LWP problem
by Anonymous Monk on Sep 18, 2009 at 12:10 UTC
    Maybe you can replicate the error if you actually POST instead of GET :=D
      It still gives the same result. It is fetching the page.