Well anyone who knows about Bulkregister knows that when ENOM bought them they basically let their API die and it is now useless...
ENOM now wants us to pay 500$ to convert our account with Bulkregister to a reseller account with ENOM so we can use THEIR API EVEN THOUGH THEY ARE THE SAME COMPANY... This is highway robbery in my mind
All I ever used the API for was our billing system to see if the domains on an account existed in our account...
So, I am now trying to log into Bulkregister using curl to get a list of the domains in my account... I have this so far:
<?php
$urlLogin = 'https://www.bulkregister.com/Login.asp';
$urlDomains = 'http://www.bulkregister.com/domains/Domain-Manager.aspx?tab=registered';
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $urlLogin);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_REFERER, 'http://www.bulkregister.com');
curl_setopt($ch, CURLOPT_POSTFIELDS, "loginid=USER&password=PASS");
ob_start();
curl_exec ($ch);
ob_end_clean();
curl_close ($ch);
unset($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiejar);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_URL,$urlDomains);
$result = curl_exec ($ch);
curl_close ($ch);
echo $result;
?>
However the output of this is:
Object moved to here.
Where "here" is a link pointing to:
http://localhost:5052/%2fLogin.asp%3fpage%3d%252fdomains%252fDomain-Manager.aspx%253ftab%253dregistered%26
Anyone have any ideas what I might be missing here?