Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Using of proxy with the Web Human Emulator.

A Proxy need. Very, very need! Do not want some Bookmarks services enable to 5 messages of 300 users per hour! They write - you have too many complaints from the same IP.

So we have to use a proxy server.

In the Web Human Emulator for work with proxy using "browser" object functions:

$browser->enable_proxy("all connections","proxy"); and $browser->disable_proxy("all connections");

For more information about these functions, see the program documentation.

So we have a file with a proxy, and we need somewhere to leave messages for each proxy. To do this, we first obtain this proxy list from a file into an array with the following code:


$proxy=file("proxy");



All of our proxies are added to the array. Now write a loop to obtain the proxy and install it on the connection:

for($i=0;$ienable_proxy("all connections",$proxy[$i]);
// check connection via proxy
// if can't connect to google
// go to next proxy
if (!$browser->check_connection('http://www.google.com',30))
continue;

// post message code here
}
($proxy);$i++)>


In end of script need add follow code :
$browser->disable_proxy("all connections");

In WHE:



This post first appeared on Web Human Emulator Scripts, please read the originial post: here

Share the post

Using of proxy with the Web Human Emulator.

×

Subscribe to Web Human Emulator Scripts

Get updates delivered right to your inbox!

Thank you for your subscription

×