Hi, I got to download a webpage using curl, and post the headers of my browser. I also need rotate my IP each time. Can I do this? Please help me with some code, or tutorial etc. Thanks
Yes , you can do this, Try with this : http://nadeausoftware.com/articles/2007/06/php_tip_how_get_web_page_using_curl Need to rotate ip, just put some ip in an array, randomize it and put with proxy in curl script. Regarding posting header, use this php function. print_r (get_headers($url)); Code (markup):
Hi, Thanks for the script, but I'm not able to rotate IP. Do I put the curl script somewhere and access it via proxy, or is it something else I'm not getting? Can you please recommend some proxies as well? Thanks
Well there are various proxy lists, gather some of them, put them in an array, randomize them and feed it to curl.
Hi, There's another problem here. I was trying to use proxies setup using phproxy script, but when I enter a URL it becomes something like: index.php?q=aHRklwjichwuxjihrhq How do I decode this thing? Is there some other proxies (setup using some other script) I can use? Thanks