LWP::MemberMixin(3pm) User Contributed Perl Documentation LWP::MemberMixin(3pm)NAME
LWP::MemberMixin - Member access mixin class
SYNOPSIS
package Foo;
require LWP::MemberMixin;
@ISA=qw(LWP::MemberMixin);
DESCRIPTION
A mixin class to get methods that provide easy access to member variables in the %$self. Ideally there should be better Perl language
support for this.
There is only one method provided:
_elem($elem [, $val])
Internal method to get/set the value of member variable $elem. If $val is present it is used as the new value for the member variable.
If it is not present the current value is not touched. In both cases the previous value of the member variable is returned.
perl v5.14.2 2012-01-14 LWP::MemberMixin(3pm)
Check Out this Related Man Page
LWP::Protocol::socks4(3pm) User Contributed Perl Documentation LWP::Protocol::socks4(3pm)NAME
LWP::Protocol::socks - adds support for the socks protocol and proxy facility
SYNOPSIS
use LWP::Protocol::socks;
DESCRIPTION
Use this package when you wish to use a socks proxy for your connections.
It provides some essential hooks into the LWP system to implement a socks "scheme" similar to http for describing your socks connection,
and can be used to proxy either http or https connections.
The use case is to use LWP::UserAgent's proxy method to register your socks proxy like so:
$ua->proxy([qw(http https)] => 'socks://socks.yahoo.com:1080');
Then just use your $ua object as usual!
EXAMPLES
#!/usr/local/bin/perl
use strict;
use LWP::UserAgent;
my $ua = new LWP::UserAgent(agent => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5');
$ua->proxy([qw(http https)] => 'socks://socks.yahoo.com:1080');
my $response = $ua->get("http://www.freebsd.org");
print $response->code,' ', $response->message,"
";
my $response = $ua->get("https://www.microsoft.com");
print $response->code,' ', $response->message,"
";
SEE ALSO
URI::socks4
LWP::Protocol::socks
AUTHORS
Oleg G <oleg@cpan.org>
perl v5.14.2 2012-02-12 LWP::Protocol::socks4(3pm)