You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Db-Doc SP <Db...@db.com> on 2003/02/13 04:04:48 UTC
501 - Protocol scheme 'http' is not supported
Hi All,
We get the following error
501 Protocol scheme 'http' is not supported
when the perl script is excuted from perlTranshandler
my $ua = LWP::UserAgent->new;
$ua->agent("MyApp/0.1 ");
my $req = HTTP::Request->new(GET => 'http://www.msn.com');
$req->content_type('text/plain');
$req->content('match=www&errors=0');
my $res = $ua->request($req);
if ($res->is_success)
{
print "Success.\n";
}
else
{
print "Failed: ", $res->status_line, "\n";
}
please help
OS Sun solaris 8.
Apache 1.3.26
mod_perl 1.27
perl 5.005_03
Regards
Harsha Yale
--
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.