|
|
|
|
Posted by Russell Schwager on January 11, 2005, 7:35 pm
Please log in for more thread options
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
under mod_perl, the httpd process crashes. The process just does a GET
to an HTTPS server and prints the results. If I run it as standalone,
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.
|
|
Posted by Randy Kobes on January 11, 2005, 11:16 pm
Please log in for more thread options
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
> under mod_perl, the httpd process crashes. The process just does a GET
> to an HTTPS server and prints the results. If I run it as standalone,
> 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
|
|
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:
> 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
> > under mod_perl, the httpd process crashes. The process just does a
GET
> > to an HTTPS server and prints the results. If I run it as
standalone,
> > 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
|
| Similar Threads | Posted | | CGI.pm and ModPerl::Registry | December 21, 2007, 11:20 pm |
| modperl and apache handlers | December 28, 2004, 5:38 am |
| CPAN conflict issue - CGI.pm vs ModPerl::Registry | September 25, 2006, 12:42 pm |
| LWP, https and a proxy | February 22, 2005, 7:43 am |
| Using HTTPS with LWP::UserAgent = Bad Service | March 30, 2005, 6:45 am |
| HTTPS URLs monitoring | October 10, 2008, 2:20 pm |
| LWP::UserAgent + HTTPS + threads ==> segmentation fault | November 11, 2004, 9:57 pm |
| HTTPS Posts seem to be lacking the content (libwww-perl) | January 3, 2006, 6:56 pm |
| What module is needed to allow scripts to post to HTTPS sites? | August 2, 2006, 8:06 am |
| Proxy method does not work using LWP::UserAgent for HTTPS request | September 9, 2008, 6:53 am |
|
|
|
|