in reply to Re^3: Proxy link rotation
in thread [Resolved]Proxy link rotation
It's here, $cur_proxy should be a string looking like this: http://111.111.111.111:12345/, randomly chosen from array . If I use $cur_proxy, this string is ignored, and traffic goes directly without any proxification. But if I comment out:
and rewrite it like this:my $cur_proxy = $valid_routes[$j]; $ua->proxy(['http'], $cur_proxy);
$ua->proxy(['http'], 'http://111.111.111.111:12345/')
traffic goes through a proxy, as it should. So I need to make rotation work, somehow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Proxy link rotation
by JavaFan (Canon) on Jan 28, 2012 at 12:07 UTC |