|
Posted by Russell Schwager on January 12, 2005, 12:41 pm
Please log in for more thread options That didn't work. Thanks for the idea though. I'll post to the
mailing lists.
Randy Kobes wrote:
show/hide quoted text
> Russell Schwager wrote:
>
> > I am having an issue with mod_perl/Apache (Apache/2.0.52 (Win32)
> > mod_perl/1.99_17 Perl/v5.8.4) and LWP where if I run a simple
script
show/hide quoted text
> > under mod_perl, the httpd process crashes. The process just does a
GET
show/hide quoted text
> > to an HTTPS server and prints the results. If I run it as
standalone,
show/hide quoted text
> > it runs fine. Also, if I run it without going to an https site, it
> > runs fine under both environments. Here's my sample script:
> >
> > #!c:perlbinperl
> >
> > use strict;
> > use LWP::UserAgent;
> > use LWP::Simple;
> > use HTTP::Request::Common;
> >
> > print "Content-type: text/htmlnn";
> >
> > my $browser = LWP::UserAgent->new(agent => 'Mozilla/4.0');
> > $browser->cookie_jar({});
> > my $req = GET "https://login.yahoo.com";
> > my $resp = $browser->request($req);
> > my $body = $resp->content();
> > print "$bodyn";
> > I am kind of stuck here. Hopefully someone has an idea.
>
> Is there anything in the error log?
>
> Since one thing that's different with an https site
> is the use (presumably) of Crypt::SSleay, it may be that
> mod_perl isn't finding the external dlls (ssleay32.dll
> and libeay32.dll) needed for this module. Try adding in
> LoadFile "C:/Path/to/ssleay32.dll"
> LoadFile "C:/Path/to/libeay32.dll"
> to your httpd.conf.
>
> If that doesn't work, there's a mod_perl mailing list at
> http://perl.apache.org/ that may help.
>
> --
> best regards,
> randy kobes
|
$browser->cookie_jar({});