I am just wondering if anyone out there has a curl script that will log into the comcast website for the account management.
This is the only one that i can not figure out as it seems to go through various stages for the log in process that I cannot follow. This is the first part of the script that I am using, it works for everything else, but not for comast.. :mad:
It then goes in into another post form with a ticketId and then it gets the main account, but everytime I get to that point, it asks me to login again.
$cookie_file_path = "comcast.txt";
$LOGINURL = "https://www.comcast.com/UserServices/Membership/LoginTicket.asmx/GetWorkTicket";
$POSTFIELDS = 'userNameHidden=&userName=USERNAME&password=PASSWORD&FormType=1&';
$reffer = "https://www.comcast.com/Corporate/Customers/CustomerCentral.html";
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$LOGINURL);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$POSTFIELDS);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);
$result = curl_exec ($ch); // execute the curl command
curl_close ($ch);