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;$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
}
In end of script need add follow code :
$browser->disable_proxy("all connections");
In WHE: