Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Proxy link rotation

by kazak (Beadle)
on Jan 28, 2012 at 08:50 UTC ( [id://950490]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://950490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found