in reply to LWP problem
I would suggest using WWW::IE::MechanizeWWW::IE::Mechanize or WWW::SeleniumWWW::Selenium as the page uses Javascript.#!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");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP problem
by Anonymous Monk on Sep 18, 2009 at 12:10 UTC | |
by venkatesan_G02 (Sexton) on Sep 18, 2009 at 13:15 UTC |