in reply to create a HTTP::Response object from a raw buffer?
(However, don't actually do it like that. See the module for a better example.)use Net::HTTP::NB; my $s = Net::HTTP::NB->new( Host => 'www.perlmonks.org' ); $s->write_request( GET => "/" ); my( $code, $msg, %headers ) = $s->read_response_headers;
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
---|