HTTP Tunnel Authorization Mode:
Authentication is done in the form of a username/password, which is eventually converted into a『Proxy-Authorization』protocol header to be sent with the request.
To facilitate access to some languages, the platform also supports tunneling through the 『Authorization』header.
use LWP::UserAgent; use HTTP::Request::Common; $useragent = LWP::UserAgent->new();$useragent->proxy("http","http://proxy.tomatoip.io:12344");
$useragent->env_proxy; $useragent->authorization_basic('proxyUser', 'password'); $request = HTTP::Request->new(GET=>"https://api.ip.sb/geoip"); $response = $useragent->request($request);