Using the module HTTP::Request
- From: perl@xxxxxxxxxxx (Ranish)
- Date: Fri, 30 Sep 2005 22:09:07 +0530
Hello All,
I am trying to use the module HTTP::Request. I tried to use the code given in
perldoc HTTP::Request
Here is my code
==============
#!/usr/bin/perl -w
use strict;
require HTTP::Request;
require LWP::UserAgent;
my ($request,$response,$ua);
$ua = LWP::UserAgent->new;
$request = HTTP::Request->new('GET' => "http://www.google.com/");
$response = $ua->request($request);
print "$response\n";
============
But the output of the code is
perl aprequest.pl
HTTP::Response=HASH(0x81e8a84)
How can I make this human readable.
Thanks in Advance.
Kind Regards,
Ranish
.
- Prev by Date: RE: a little help...
- Previous by thread: Comparing an array with hash keys
- Index(es):