llancet has asked for the wisdom of the Perl Monks concerning the following question:
But what I get is only a "OK" in the $message, so where is the html file content?use strict; use Net::HTTP; my $addr='www3.oup.co.uk'; my $file='/nar/database/cap'; my $IO=Net::HTTP->new('Host'=>$addr) || die $@; $IO->write_request(GET=>$file); my ($code,$message,@headers)=$IO->read_response_headers;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple use of Net::HTTP
by ikegami (Patriarch) on Sep 11, 2008 at 07:51 UTC | |
|
Re: simple use of Net::HTTP
by moritz (Cardinal) on Sep 11, 2008 at 07:49 UTC | |
|
Re: simple use of Net::HTTP
by Anonymous Monk on Sep 11, 2008 at 07:53 UTC | |
|
Re: simple use of Net::HTTP
by peter (Sexton) on Sep 11, 2008 at 14:26 UTC |