Helo,
I am trying to connect to httpS using www::mechanize , but every time get a segmentation fault.
I am Using RHEL 4 , openssl version is 0.9.8b .
problem Detail:
When I try to mechanize->get() any http URL it works , but whenever I put in an httpS Url it gives segmentation fault .
Tried another CPAN module to access web , same thing is happening.
Is it a fault with openssl ? Can you help me tracing the fault line .
Thank you
Here is basic code i m trying to run
----------
#!/usr/bin/perl
use WWW::Mechanize;
my $mech = WWW::Mechanize->new( autocheck => 1);
my $url2 = "https://login.live.com/login.srf?id=2&svc=mail&cbid=24325&
+msppjph=1&tw=0&fs=1&fsa=1&fsat=1296000&lc=1033&_lang=EN&bk=1633438";
$mech->get($url2);
print $mech->content;
print $mech->forms;
Edited by planetscape - removed "<br>" from code
( keep:1 edit:9 reap:0 )
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.