in reply to Re^3: Proxy link rotation
in thread [Resolved]Proxy link rotation

 $ua->proxy(['http'], $cur_proxy);

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:

my $cur_proxy = $valid_routes[$j]; $ua->proxy(['http'], $cur_proxy);

and rewrite it like this:

 $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
    Ok, I've asked you a few times to provide us with standalone code that shows the problem.

    You're failing to do so.

    Good luck with your program!