Ich versuche gerade per cURL einen Worker für meinen Miner hinzuzufügen allerdings klappt das net so wie ich das will.. :
PHP-Code:
<?php
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://doge.hashfaster.com/index.php?page=login',
CURLOPT_USERAGENT => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)',
CURLOPT_POST => 1,
CURLOPT_FOLLOWLOCATION => 0,
CURLOPT_COOKIEJAR => 'cookie.txt',
CURLOPT_POSTFIELDS => array(
username => 'email',
password => 'passwort'
)
));
$content = curl_exec($ch);
//create worker
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://doge.hashfaster.com/index.php?page=account&action=workers',
CURLOPT_USERAGENT => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)',
CURLOPT_POST => 1,
CURLOPT_FOLLOWLOCATION => 0,
CURLOPT_COOKIEJAR => 'cookie.txt',
CURLOPT_POSTFIELDS => array(
username => 'adsfdgfdfg',
password => 'password',
page => 'account',
workers => 'action',
do => 'add'
)
));
$content = curl_exec($ch);
curl_close($ch);
?>
Kommentar