in reply to Accessing web page

This seems to me like it should be a reply to Fetching web page rather than a new post. Does your system use an HTTPS proxy? If so please read the WWW::Mechanize documentation reagarding explicitly setting noproxy => 0 when using Crypt::SSLeay.

Hope this helps,

Martin

Replies are listed 'Best First'.
Re^2: Accessing web page
by Ankit.11nov (Acolyte) on Jul 24, 2009 at 11:10 UTC
    use strict; use warnings; use WWW::Mechanize; my $mech=WWW::Mechanize->new(noproxy => 0); my $URL="http://in.yahoo.com/"; $mech->get($URL); $mech->follow_link(text => 'Mail'); my $file=$mech->content(); open FILE_OUT , ">output.html" or die "$!"; print FILE_OUT $file; close FILE_OUT;

    Modified the code but still getting the same error.

      So you are using a HTTPS Proxy? Did you set the HTTPS_PROXY environment varialble as describe in the documentation I linked to previously?

      Martin