ERRORS:
' . curl_error($ch) . "\n"; curl_close ($ch); # DEBUG FIRST POST # we logged in via GET FTW ! print $result; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,FALSE); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)'); curl_setopt($ch, CURLOPT_REFERER, 'https://my.t-mobile.com/Default.aspx?rp.Logon=true'); curl_setopt($ch, CURLOPT_URL, 'https://my.t-mobile.com/billing/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEFILE, '.cookie'); curl_setopt($ch, CURLOPT_COOKIEJAR, '.cookie'); $result = curl_exec ($ch); # echo '

ERRORS:


' . curl_error($ch) . "\n"; curl_close ($ch); # ok now we got cookie to https://ebill.t-mobile.com # refer is incoreredft in the following get . but if it stops working you know why ... #print $result; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,FALSE); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)'); curl_setopt($ch, CURLOPT_REFERER, 'https://ebill.t-mobile.com/myTMobile'); curl_setopt($ch, CURLOPT_URL, 'https://ebill.t-mobile.com/myTMobile/onPrintBill.do'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEFILE, '.cookie'); curl_setopt($ch, CURLOPT_COOKIEJAR, '.cookie'); $result = curl_exec ($ch); # echo '

ERRORS:


' . curl_error($ch) . "\n"; curl_close ($ch); print $result;