> Tanuj Mittal wrote:
You probably have to put $url=new
URI::URL('http://www.ora.com/index.html'); instead of just
'www.ora.com/index.html'
Regards,
Tibor
>
> > i try to run a simple perl test program --
> > # !/usr/bin/perl -w
> > use LWP::UserAgent;
> > use HTTP::Request;
> > use HTTP::Response;
> > my $ua=new LWP::UserAgent;
> > $hdrs=new HTTP::Headers(Accept
> =>'text/plain',User-Agent=>'MegaBrowser/1.0');
> > $url=new URI::URL('www.ora.com/index.html');
> > my $req=new HTTP::Request(GET,$url,$hdrs);
> > $resp=$ua->request($req);
> > if ($resp->is_success)
> > {
> > print $resp->content;
> > }
> > else {
> > print $resp->message;
> > print "Failed";}
> >
> > this is the error that i get:
> > ctss82 $ perl blt.pl
> > Protocol scheme '' is not supportedFailed.....