Hi everybody,
I am desperately trying to log into my account at godaddy.com with PHP
and Curl and just cannot make it happen. Has anybody written a script
for this purpose?
Here is what I tried but the result is always the login page.
$curl=curl_init ();
curl_setopt($cu rl, CURLOPT_SSL_VER IFYPEER, FALSE);
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, "-");
curl_setopt($cu rl,CURLOPT_COOK IEFILE, "");
$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
,"UsernameTextB ox=OWNUSERID&Pa sswordTextBox=O WNPASS");
$result.="Page 2:<br>".curl_ex ec($curl);
Many thanks for any help, hints or ideas.
Hans
I am desperately trying to log into my account at godaddy.com with PHP
and Curl and just cannot make it happen. Has anybody written a script
for this purpose?
Here is what I tried but the result is always the login page.
$curl=curl_init ();
curl_setopt($cu rl, CURLOPT_SSL_VER IFYPEER, FALSE);
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, "-");
curl_setopt($cu rl,CURLOPT_COOK IEFILE, "");
$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
,"UsernameTextB ox=OWNUSERID&Pa sswordTextBox=O WNPASS");
$result.="Page 2:<br>".curl_ex ec($curl);
Many thanks for any help, hints or ideas.
Hans
Comment