Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 40 lines (27 sloc) 0.994 kb
HTTPS protocol implementation for LWP that uses a proxy.
This module was written by Peteris Krumins (, @pkrumins).
His blog is at -- good coders code, great reuse.
Here is an example of how to use it:
use strict;
use warnings;
use LWP::UserAgent;
use LWP::Protocol::https::Socketeer;
LWP::Protocol::implementor( https => 'LWP::Protocol::https::Socketeer' );
my $ua = new_agent;
my $resp = $ua->get('');
die unless defined $resp;
print $resp->content;
sub new_agent {
my $proxy = {
login => 'your_proxy_login',
pass => 'your_proxy_password',
host => '',
port => '1088',
type => 'socks5'
%LWP::Protocol::https::Socketeer::SOCKET_OPTS = (proxy => $proxy);
my $ua = LWP::UserAgent->new;
Jump to Line
Something went wrong with that request. Please try again.