Login page is https login.mobile.de
I have this code
<? $curl=curl_init(); curl_setopt($curl,CURLOPT_RETURNTRANSFER ,1 ); curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10'); curl_setopt($curl,CURLOPT_HEADER , 1); curl_setopt($curl,CURLOPT_FOLLOWLOCATION, 1); // enable SSL curl_setopt($curl,CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl,CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($curl,CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($curl,CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($curl,CURLOPT_TIMEOUT,10000); curl_setopt($curl,CURLOPT_URL,"https://login.mobile.de/cas/login"); curl_setopt($curl,CURLOPT_POST ,1); $post = array( "username" => 'user', "password" => 'parola', "_eventId" => 'submit', "browserFingerprint" => $_SERVER['HTTP_USER_AGENT'], "lt" => '_cB7B0D11C-F30B-414D-BC92-7EBD653B5E4D_k5E047450-68AD-67E5-B3FA-5414826C52D8' ); //print_r($post); curl_setopt($curl,CURLOPT_POSTFIELDS,$post); echo curl_exec($curl); ?>I tried to post first request , and after this to get the value of "lt" variable, and to post it together with user and password.
The login page doesnt reply any message.
I tried to make a personally certifiy with openssl from my server , but no working.
Where i'm wrong in this code?
I just want to login automatically with CURL into mobile.de
Thanks


Sign In
Create Account

Back to top









