zuma53 has asked for the wisdom of the Perl Monks concerning the following question:
Nothing fancy or anything.use LWP::Simple; use LWP::UserAgent; $browser = LWP::UserAgent->new; $browser->default_headers->push_header('User-Agent' => 'Mozilla/4.0 (c +ompatible; MSIE 7.0; Windows NT 5.1; iOpus-I-M; GTB6; .NET CLR 2.0.50 +727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET +CLR 3.0.4506.2152; .NET CLR 3.5.30729)'); $browser->default_headers->push_header('Host' => "brtweb.phila.gov"); $browser->default_headers->push_header('Connection' => "close"); $response = $browser->get('http://brtweb.phila.gov/brt.apps/Search/Sea +rchResults.aspx?id=6546003202'); print $response->content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: lwp not retieving the same page as from a browser
by moritz (Cardinal) on Aug 25, 2009 at 07:42 UTC | |
|
Re: lwp not retieving the same page as from a browser
by james2vegas (Chaplain) on Aug 25, 2009 at 07:53 UTC | |
by zuma53 (Beadle) on Aug 26, 2009 at 07:15 UTC | |
by james2vegas (Chaplain) on Aug 26, 2009 at 08:01 UTC | |
by zuma53 (Beadle) on Aug 26, 2009 at 19:46 UTC |