in reply to HTTP::Tiny with localhost socks

HTTP::Tiny does not support SOCKS proxies. The price for the speed is the universality. Maybe you want to use WWW::Curl.

Replies are listed 'Best First'.
Re^2: HTTP::Tiny with localhost socks
by kilo_bytes (Initiate) on Jun 21, 2015 at 23:40 UTC

    I just found a solution

    use IO::Socket::Socks::Wrapper ( 'HTTP::Tiny::Handle::connect()' => { ProxyAddr => 'localhost', ProxyPort => 1510, SocksVersion => 4, Timeout => 15 } );

    Then you just use Tiny normally as you like. The performance decreased but still faster than LWP. I will check the performance of WWW::Curl