eisdrache has asked for the wisdom of the Perl Monks concerning the following question:
I have a script which takes a given url, examines the header of the page and then prints the server info to stdout. Very simple code, here it is for reference:
use strict; use LWP::Simple; print "URL: "; chomp(my $url = <STDIN>); my (undef, undef, undef, undef, $server) = head($url); print "Server: $server\n";
If I enter any url using standard http protocol (e.g. http://www.amazon.com) the script works fine. However, if I enter a url using https protocol (e.g. https://www.amazon.com) the script fails with a segmentation fault (coredump).
My LWP module supports https, I have OpenSSL installed, and I have Crypt::SSLeay and Net::SSLeay installed. But I cannot get past this problem and I am ready to start pulling my hair out over it.
Any ideas are much appreciated. Thank you in advance for any help.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: https request causes segmentation fault
by Zaxo (Archbishop) on Oct 30, 2006 at 02:41 UTC | |
by eisdrache (Novice) on Oct 30, 2006 at 03:36 UTC | |
by eisdrache (Novice) on Oct 30, 2006 at 02:45 UTC | |
by Zaxo (Archbishop) on Oct 30, 2006 at 02:55 UTC | |
by madbombX (Hermit) on Oct 30, 2006 at 02:50 UTC | |
by superfrink (Curate) on Oct 30, 2006 at 03:17 UTC | |
Re: https request causes segmentation fault
by madbombX (Hermit) on Oct 30, 2006 at 02:46 UTC | |
Re: https request causes segmentation fault
by perrin (Chancellor) on Oct 30, 2006 at 19:08 UTC |
Back to
Seekers of Perl Wisdom