500 Internet error problems

Ryan Retting (rretting@calpoly.edu)
Tue, 27 Oct 1998 14:59:00 -0800


I'm getting 500 Internet error problems.
It will run on the command line and not through MSIE or LYNX and yes there
is a print "Content-type: text/html\n\n"; line.

Through hours and hours of trying to get it to work, i've concluded that
whenever i try any form of use LWP; I'll get a 500 error.

A possibly related thing is that LWP, Data-Dumper, HTML-Parser, MD5,
MIME-64, etc. are all installed (and reinstalled many times 100%
successfully through all tests) in ~/perl.  I used the perl Makefile.PL
PREFIX=~/perl LIB=~/perl
command when installing these.

I also have PERL5LIB=~/perl in my env.

THIS DOES NOT WORK:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
use LWP;
$url = "http://www.perl.com";
$in = get($url);
print $in;

THIS WORKS: (no 500, though blank)
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
#use LWP;
$url = "http://www.perl.com";
$in = get($url);
print $in;

THIS DOES NOT WORK:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
use LWP ;
print "hello";

THIS DOES WORK:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "Hello";

THIS DOES NOT WORK (~/perl = /home/cscstd/qurst/rretting/perl):
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
use LWP "/home/cscstd/qrst/rretting/perl";
$url = "http://www.perl.com";
$in = get($url);
print $in;

THIS DOES NOT WORK:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
use lib "home/cscstd/qrst/rretting/perl";
use LWP;
$url = "http://www.perl.com";
$in = get($url);
print $in;


hopefully those examples helped.
thanks!
      -Ryan

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
ROCK - ICQ#9082094
rretting@calpoly.edu
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\