Jacqui,

Thanks for your input.  Per your suggestion, I upgraded CGI.pm.  It,
unfortunately didn't have any effect.  My script (see below) functions
as expected from the command line.  It also works in Apache if I set the
MaxRequestsPerChild to 1 (I know this is not a good setting, I was just
trying anything I though could affect it.)  With MaxRequestsPerChild set
to any other number, the script times out.  The script functions as
expected when $site = any url not hosted on the same machine.  Any help
would be appreciated.

-------------------------------
use strict;
use warnings;
use diagnostics;
use LWP::UserAgent;

my $ua = new LWP::UserAgent;
my $site = 'http://localhost/';
my $response = $ua->get($site);

print $response->content;

--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to