in reply to Re^5: WWW::Mechanize Problem
in thread WWW::Mechanize Problem
Please help!!!#!C:/Perl/bin/perl.exe use LWP::Simple; use LWP::UserAgent; use HTTP::Request; use HTTP::Response; use HTML::LinkExtor; use LWP::Authen::Ntlm; my $URL= "http://eonet.level3.com/"; $browser = LWP::UserAgent->new(); $browser->timeout(10); my $request = HTTP::Request->new(GET => $URL); my $response = $browser->request($request); if ($response->is_error()) {printf "%s\n", $response->status_line;} $contents = $response->content(); #print $contents; print $response->status_line(), "\n"; print $response->headers()->as_string();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: WWW::Mechanize Problem
by ikegami (Patriarch) on Apr 07, 2009 at 18:42 UTC | |
by Anonymous Monk on Apr 08, 2009 at 18:08 UTC | |
by ikegami (Patriarch) on Apr 08, 2009 at 18:12 UTC | |
by Anonymous Monk on Apr 08, 2009 at 18:52 UTC | |
by ikegami (Patriarch) on Apr 08, 2009 at 18:59 UTC | |
| |
by Anonymous Monk on Apr 08, 2009 at 18:57 UTC | |
|