in reply to Proxies with LWP & SSL
use strict; use warnings; use LWP::UserAgent; use LWP::Debug qw(+); $ENV{HTTP_Proxy} = 'http://192.168.2.1:8118'; my $browser = LWP::UserAgent->new(keep_alive => 1); $browser->env_proxy(1); my $url = "https://www.hsbc.co.uk/"; my $response = $browser->get($url); print $response->as_string();
As a general point though - it looks as though you are trying to screen scrape a banking application. Take a look at WWW::Mechanize as a better way of managing navigation and form filling.
|
|---|