Rotating Proxies and Lists

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Rotating Proxies and Lists

Post by cesarcesar »

I need to set up a rotating proxy for an application i am building. I have a cURL script that reads a page, but i need to seem like its not being called from the same IP address each time. I would like to have a list of proxies that i can rotate between each call i make.

I have looked at Glype and PHPproxy but both i cannot get to work correctly. Does anybody have any suggestions, script examples or good info web pages they can provide. I would be interested in using Glype or PHPproxy if someone can point me in a good direction to use them correctly. Otherwise anything else would be perfect as well.

Thanks much.

Cesar
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Rotating Proxies and Lists

Post by John Cartwright »

I'm not sure why you would need external tools to implement a proxy. You can pass the proxy you want to use directly into the curl object, alas...

Code: Select all

curl_setopt($ch, CURLOPT_PROXY, $proxyvalue);
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Re: Rotating Proxies and Lists

Post by cesarcesar »

thanks Jon. I still would like a full script since i have another usage that doesnt involve cUrl.
Post Reply