Jump to content


Photo

need help urgent cURL php


  • Please log in to reply
No replies to this topic

#1 kals

kals
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 03 July 2006 - 06:33 AM

I am trying to access my godaddy account using cURL but some error occurs
the error can be seen here:
http://sourcefreelan...ddy/replace.php

the code is below:
<?
$url="https://idp.godaddy.com/login.aspx?se=%2B&amp;spkey=GDSWEB91&amp;login=&amp;target=secure%5Ftransfer%2Easp";
$vars="PasswordTextBox=pass&UsernameTextBox=user&__EVENTTARGET&__EVENTARGUMENT&__VIEWSTATE=dDw3MDI1OTkxOTI7dDw7bDxpPDA+Oz47bDx0PDtsPGk8MT47PjtsPHQ8O2w8aTw1PjtpPDg+Oz47bDx0PHA8cDxsPEltYWdlVXJsOz47bDxodHRwczovL2ltYWdlcy5nb2RhZGR5LmNvbS9zc28vYnV0dG9ucy8xL2J1dF9zZWN1cmVsb2dpbi5naWY7Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPFByb3RlY3RlZCBieSBhIEdvIERhZGR5IFNTTCBDZXJ0aWZpY2F0ZS4gU2VjdXJlIGFuZCAxMjgtYml0IGVuY3J5cHRlZCE7Pj47Pjs7Pjs+Pjs+Pjs+PjtsPExvZ2luSW1hZ2VCdXR0b247Pj6MHjUFoXuRslkGzQ7erW+h3AK/hQ=="; 

   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_HEADER, 1);
   curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
   curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  
       curl_setopt($ch, CURLOPT_POST, 1);
       curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);

   $data = curl_exec($ch);
   curl_close($ch);
print $data;
?>

Any help highly appreciated, can also be paid (first person to solve problem)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users