Re: 501 Protocol scheme 'http' is not supported

2006-04-25 Thread Tom Phoenix
On 4/25/06, Sanchita Dahal <[EMAIL PROTECTED]> wrote:

> I am getting  "501 Protocol scheme 'http' is not supported at test.pl
> line 11." error. Please help.

It sounds as if LWP isn't properly installed. Can you get it to pass
all the tests, and then re-install it? Good luck!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




RE: 501 Protocol scheme 'http' is not supported

2006-04-25 Thread Sanchita Dahal
On 4/26/06, nishanth ev <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Its not the error with the perl script.
> Your program ran perfect on my machine.
> Please let me know if you ran it as a cgi script after
> adding the shebang and other modifications or simply
> ran as perl script.
Simply as a perl script
>
> Most probably the error is with the perl module
> installation.
> Please change the url that you are trying to access
> and check.
Itried again and got the same result.
>
> Regards
> Nishanth
>
> --- Sanchita Dahal <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I am trying to run this
> >
> > ++
> > require LWP::UserAgent;
> >
> >  my $ua = LWP::UserAgent->new;
> >
> >  my $response = $ua->get('http://search.cpan.org/');
> >
> >  if ($response->is_success) {
> >  print $response->content;  # or whatever
> >  }
> >  else {
> >  die $response->status_line;
> >  }
> > *
> > I am getting  "501 Protocol scheme 'http' is not
> > supported at test.pl
> > line 11." error. Please help.
> >
> > --
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > <http://learn.perl.org/>
> > <http://learn.perl.org/first-response>
> >
> >
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




501 Protocol scheme 'http' is not supported

2006-04-25 Thread Sanchita Dahal
Hi,
I am trying to run this

++
require LWP::UserAgent;

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

 my $response = $ua->get('http://search.cpan.org/');

 if ($response->is_success) {
 print $response->content;  # or whatever
 }
 else {
 die $response->status_line;
 }
*****
I am getting  "501 Protocol scheme 'http' is not supported at test.pl
line 11." error. Please help.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>