I've been trying to find a solution to this for quite some time now...
I even took a look at existing scripts...
Including this one...
Everyone on that post seems to say its to do with the cookie's, yet if
infact they had tried this script they would have found that even with
the cookies enabled this script doesn't work.
These are my last 3 attempts:
function google_login1($ user,$pass) {
$url="https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 50&ci=708&targe t=default%2Easp ";
$post="Username TextBox=$user&P asswordTextBox= $pass&LoginImag eButton.x=56&Lo ginImageButton. y=13&EmailEnter =+Free+Email+Up dates%21+Enter+ address+&EmailS ub=";
$curl = curl_init();
curl_setopt($cu rl,CURLOPT_URL, $url);
curl_setopt($cu rl, CURLOPT_POST, 1);
curl_setopt($cu rl, CURLOPT_RETURNT RANSFER, 1);
curl_setopt($cu rl,CURLOPT_POST FIELDS, $post);
curl_setopt($cu rl, CURLOPT_USERAGE NT,
$_SERVER['HTTP_USER_AGEN T']);
curl_setopt($cu rl, CURLOPT_SSL_VER IFYPEER, FALSE);
curl_setopt($cu rl,CURLOPT_VERB OSE ,1 );
curl_setopt($cu rl,CURLOPT_HEAD ER ,1 );
curl_setopt($cu rl,CURLOPT_FOLL OWLOCATION, 1);
$result = curl_exec($curl );
curl_close($cur l);
return $result;
}
function godaddy_login2( $user,$pass) {
$curl=curl_init ();
curl_setopt($cu rl, CURLOPT_SSL_VER IFYPEER, FALSE);
curl_setopt($cu rl, CURLOPT_USERAGE NT, $_SERVER['HTTP_USER_AGEN T']);
curl_setopt($cu rl,CURLOPT_URL, "https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 04&login=&targe t=secure%5Ftran sfer%2Easp%3Fur l%3D");
curl_setopt($cu rl,CURLOPT_RETU RNTRANSFER ,1 );
curl_setopt($cu rl,CURLOPT_VERB OSE ,1 );
curl_setopt($cu rl,CURLOPT_HEAD ER ,1 );
curl_setopt($cu rl,CURLOPT_FOLL OWLOCATION, 1);
curl_setopt($cu rl,CURLOPT_COOK IEJAR, "cookie.txt ");
curl_setopt($cu rl,CURLOPT_COOK IEFILE, "cookie.txt ");
$result="Page 1:<br>".curl_ex ec($curl);
curl_setopt($cu rl,CURLOPT_URL, "https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 04&login=&targe t=secure%5Ftran sfer%2Easp%3Fur l%3D");
curl_setopt($cu rl,CURLOPT_POST ,1);
curl_setopt($cu rl,CURLOPT_REFE RER,"http://www.godaddy.com/gdshop/default.asp"
);
curl_setopt($cu rl,CURLOPT_POST FIELDS,"Usernam eTextBox=$user& PasswordTextBox =$pass");
$result.="Page 2:<br>".curl_ex ec($curl);
return $result;
}
function godaddy_login3( $user,$pass) {
$url="https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 91&login=&targe t=secure%5Ftran sfer%2Easp";
$vars="Username TextBox=$user&P asswordTextBox= $pass";
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL, $url);
curl_setopt($ch , CURLOPT_HEADER, 1);
curl_setopt($ch , CURLOPT_USERAGE NT, $_SERVER['HTTP_USER_AGEN T']);
curl_setopt($ch , CURLOPT_FOLLOWL OCATION, 1);
curl_setopt($ch , CURLOPT_RETURNT RANSFER, 1);
curl_setopt($ch , CURLOPT_COOKIEJ AR, 'cookie.txt');
curl_setopt($ch , CURLOPT_COOKIEF ILE, 'cookie.txt');
curl_setopt($ch , CURLOPT_POST, 1);
curl_setopt($ch , CURLOPT_POSTFIE LDS, $vars);
$result = curl_exec($ch);
curl_close($ch) ;
return $result;
}
Any thoughts?
I even took a look at existing scripts...
Including this one...
Everyone on that post seems to say its to do with the cookie's, yet if
infact they had tried this script they would have found that even with
the cookies enabled this script doesn't work.
These are my last 3 attempts:
function google_login1($ user,$pass) {
$url="https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 50&ci=708&targe t=default%2Easp ";
$post="Username TextBox=$user&P asswordTextBox= $pass&LoginImag eButton.x=56&Lo ginImageButton. y=13&EmailEnter =+Free+Email+Up dates%21+Enter+ address+&EmailS ub=";
$curl = curl_init();
curl_setopt($cu rl,CURLOPT_URL, $url);
curl_setopt($cu rl, CURLOPT_POST, 1);
curl_setopt($cu rl, CURLOPT_RETURNT RANSFER, 1);
curl_setopt($cu rl,CURLOPT_POST FIELDS, $post);
curl_setopt($cu rl, CURLOPT_USERAGE NT,
$_SERVER['HTTP_USER_AGEN T']);
curl_setopt($cu rl, CURLOPT_SSL_VER IFYPEER, FALSE);
curl_setopt($cu rl,CURLOPT_VERB OSE ,1 );
curl_setopt($cu rl,CURLOPT_HEAD ER ,1 );
curl_setopt($cu rl,CURLOPT_FOLL OWLOCATION, 1);
$result = curl_exec($curl );
curl_close($cur l);
return $result;
}
function godaddy_login2( $user,$pass) {
$curl=curl_init ();
curl_setopt($cu rl, CURLOPT_SSL_VER IFYPEER, FALSE);
curl_setopt($cu rl, CURLOPT_USERAGE NT, $_SERVER['HTTP_USER_AGEN T']);
curl_setopt($cu rl,CURLOPT_URL, "https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 04&login=&targe t=secure%5Ftran sfer%2Easp%3Fur l%3D");
curl_setopt($cu rl,CURLOPT_RETU RNTRANSFER ,1 );
curl_setopt($cu rl,CURLOPT_VERB OSE ,1 );
curl_setopt($cu rl,CURLOPT_HEAD ER ,1 );
curl_setopt($cu rl,CURLOPT_FOLL OWLOCATION, 1);
curl_setopt($cu rl,CURLOPT_COOK IEJAR, "cookie.txt ");
curl_setopt($cu rl,CURLOPT_COOK IEFILE, "cookie.txt ");
$result="Page 1:<br>".curl_ex ec($curl);
curl_setopt($cu rl,CURLOPT_URL, "https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 04&login=&targe t=secure%5Ftran sfer%2Easp%3Fur l%3D");
curl_setopt($cu rl,CURLOPT_POST ,1);
curl_setopt($cu rl,CURLOPT_REFE RER,"http://www.godaddy.com/gdshop/default.asp"
);
curl_setopt($cu rl,CURLOPT_POST FIELDS,"Usernam eTextBox=$user& PasswordTextBox =$pass");
$result.="Page 2:<br>".curl_ex ec($curl);
return $result;
}
function godaddy_login3( $user,$pass) {
$url="https://idp.godaddy.com/login.aspx?se=% 2B&spkey=GDSWEB 91&login=&targe t=secure%5Ftran sfer%2Easp";
$vars="Username TextBox=$user&P asswordTextBox= $pass";
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL, $url);
curl_setopt($ch , CURLOPT_HEADER, 1);
curl_setopt($ch , CURLOPT_USERAGE NT, $_SERVER['HTTP_USER_AGEN T']);
curl_setopt($ch , CURLOPT_FOLLOWL OCATION, 1);
curl_setopt($ch , CURLOPT_RETURNT RANSFER, 1);
curl_setopt($ch , CURLOPT_COOKIEJ AR, 'cookie.txt');
curl_setopt($ch , CURLOPT_COOKIEF ILE, 'cookie.txt');
curl_setopt($ch , CURLOPT_POST, 1);
curl_setopt($ch , CURLOPT_POSTFIE LDS, $vars);
$result = curl_exec($ch);
curl_close($ch) ;
return $result;
}
Any thoughts?