use strict; use WWW::Mechanize; use WWW::Mechanize::FormFiller; my $mechanize = WWW::Mechanize->new( autocheck => 1 ); my $formfiller = WWW::Mechanize::FormFiller->new(); $mechanize->proxy(['http', 'ftp', 'https'], 'http://tant-a01\\santu:Xi +us12345678@naproxy.XXX.com:80'); $mechanize->get('http://www.redhat.com'); #$mechanize->get('https://www.redhat.com'); print $mechanize->status(); my $page = $mechanize->content; print $page; cpan> install IO::Socket::SSL Going to read '/root/.cpan/Metadata' Database was generated on Sat, 06 Mar 2010 22:36:41 GMT IO::Socket::SSL is up to date (1.32). + + cpan> install Crypt::SSLeay Crypt::SSLeay is up to date (0.57).
Above code works fine with the http link but when using with https it comes back with the below message.
"Error GETing https://www.redhat.com: Bad Request at test.pl line 9"Any help/suggestions would be highly appreciated
Thanks VishnuIn reply to Mechanize https proxy not working by vishnu787
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |