madM has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks!
I´m trying to use the Modul WWW::Mechanize::Firefox but when i try to run my very small script i get the error
"Failed to connect to , at /Library/Perl/5.12/MozRepl/RemoteObject.pm"
Any ideas why is this happening? Here´s my Code:
#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new(); $mech->get('https://openbook.etoro.com/Dellos/overview/'); print $mech->content(); exit;

Replies are listed 'Best First'.
Re: Problem using WWW::Mechanize::Firefox
by boftx (Deacon) on Nov 20, 2013 at 04:43 UTC

    IIRC, there is an environment variable or parameter that tells Mechanize (LWP?) to ignore any problems with the SSL cert. Maybe that would help? For that matter, does the URL respond in a browser using just http: instead of https:?

    It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
Re: Problem using WWW::Mechanize::Firefox
by Corion (Patriarch) on Nov 20, 2013 at 07:34 UTC
Re: Problem using WWW::Mechanize::Firefox
by Ea (Chaplain) on Nov 20, 2013 at 10:57 UTC
    This is probably the same question that Corion is asking, but have you got the MozRepl plugin installed in Firefox? It's my understanding that the module talks to Firefox and gets your open browser to navigate the web pages. It's the only way, so far, of Mechanizing with Javascript.

    Sometimes I can think of 6 impossible LDAP attributes before breakfast.
      Thank you .. that was it ;)