HI team,

 

 

I have my Perl program to use LWP::UserAgent to fetch the response from
the server.

 

When I tried to do so I'm getting 

 

501 Protocol Scheme 'http' Is not supported

 

 

Please help me to get this resolved.

 

My Perl program is 

 

use LWP::UserAgent;

use HTTP::Response;

 

my $req = new HTTP::Request(GET=>'some_URL');

                

my $ua = LWP::UserAgent->new();

$req->header('Accept' => 'text/html');

 

my $res = $ua->request($req);

print $res->content;

print $res->is_success;

print $res->status_line;

 

 

 

#http://gazelle2dev.global.astrazeneca.net//gazelle/content/jsp/util/mon
itor_parts_jvm.jsp'

 

Regards

KarthIck Shanmugam

 

  • 501 error Shanmugam, Karthick (Infosys)

Reply via email to