Geonode::Free::Proxy - Geonode's Proxy Object returned by Geonode::Free::ProxyList
Note: this a companion module for Geonode::Free::ProxyList
Version 0.0.5
Geonode's Proxy Object returned by Geonode::Free::ProxyList
my $some_proxy = Geonode::Free::Proxy->new( 'some-id', '127.0.0.1', 3128, [ 'http', 'socks5' ] ); $some_proxy->get_host(); # '127.0.0.1' $some_proxy->get_port(); # 3128 $some_proxy->get_methods(); # [ 'http', 'socks5' ] my $other_proxy = Geonode::Free::Proxy->new( 'some-id', '127.0.0.1', 3128, [ 'http', 'socks5' ] ); Geonode::Free::Proxy::prefer_socks(); $some_proxy->get_url(); # 'socks://127.0.0.1:3128'; Geonode::Free::Proxy::prefer_http(); $other_proxy->get_url(); # 'http://127.0.0.1:3128'; my $http_proxy = Geonode::Free::Proxy->new( 'some-id', '127.0.0.1', 3128, [ 'http' ] ); $http_proxy->can_use_http(); # 1; $http_proxy->can_use_socks(); # 0; Geonode::Free::Proxy::prefer_socks(); $http_proxy->get_url(); # 'http://127.0.0.1:3128';
Instantiate Geonode::Free::Proxy object (id, host, port, methods)
Sets preferred method to socks. This is used when getting the full proxy url.
Preferred method is set up *globally*.
Sets preferred method to http. This is used when getting the full proxy url.
Gets preferred method
Gets host
Gets port
Gets methods
Returns truthy if proxy can use socks method
Returns truthy if proxy can use http method
Gets proxy url
Julio de Castro, <julio.dcs at gmail.com>
<julio.dcs at gmail.com>
Please report any bugs or feature requests to bug-geonode-free-proxylist at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Geonode-Free-ProxyList.
bug-geonode-free-proxylist at rt.cpan.org
I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Geonode::Free::Proxy
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Geonode-Free-ProxyList
CPAN Ratings
https://cpanratings.perl.org/d/Geonode-Free-ProxyList
Search CPAN
https://metacpan.org/release/Geonode-Free-ProxyList
This software is Copyright (c) 2021 by Julio de Castro.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Geonode::Free::ProxyList, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geonode::Free::ProxyList
CPAN shell
perl -MCPAN -e shell install Geonode::Free::ProxyList
For more information on module installation, please visit the detailed CPAN module installation guide.