in reply to Using LWP through a proxy for HTTPS
my $finaldata; my @protocols = qw(http https ftp); my $query_url = 'https://www.etrade.com/'; my $ua = LWP::UserAgent->new( agent => 'yourstring'); $ua->protocols_allowed( \@protocols ); $ua->proxy('http://1.2.3.4:3128/'); my $response = $ua->get("$query_url", ':content_cb' => \&stitch, ); sub stitch { my($data, $response, $protocol) = @_; print $data; return $finaldata .= $data; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using LWP through a proxy for HTTPS
by Pragma (Scribe) on Oct 20, 2004 at 02:18 UTC | |
by hsinclai (Deacon) on Oct 20, 2004 at 03:22 UTC | |
by Pragma (Scribe) on Oct 20, 2004 at 09:41 UTC |