in reply to Re: Mechanize https proxy not working
in thread Mechanize https proxy not working

The same code works with any http link, but doesn't work with an https link

Tried with another https link and the same result

Error GETing https://www.guardiananytime.com/: Bad Request at test.pl line 9
  • Comment on Re^2: Mechanize https proxy not working

Replies are listed 'Best First'.
Re^3: Mechanize https proxy not working
by Anonymous Monk on Mar 10, 2010 at 04:54 UTC
    1) turn on debugging 2) do you know if your proxy supports https?

      1)with the same proxy settings wget and elinks are working good

      2)can you please let me know how to turn debugging on...Thanks
        $ua->add_handler("request_send", sub { shift->dump; return }); $ua->add_handler("response_done", sub { shift->dump; return });
Re^3: Mechanize https proxy not working
by Khen1950fx (Canon) on Mar 10, 2010 at 04:50 UTC
    I don't know what is causing your problem. I'd use a different module to get the https link. Something like IO::All::HTTPS
    #!/usr/bin/perl use strict; use warnings; use IO::All; my $content < io('https://www.guardiananytime.com'); print $content, "\n";
      comes back with *Can't find a class for method 'https' at test1.pl line 7*