integer HTTP_Client::post ( string $url , mixed $data , boolean $preEncoded = false , array $files = array() )
$pwd="motdepasse"; $login="email"; $response_code=$client->post( "https://accounts.google.com/ServiceLogin","service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/?tab%3Dwm&scc=1<mpl=default<mplcache=2&emr=1&Email=$login&Passwd=$pwd" )
<form novalidate method="post" action="https://accounts.google.com/ServiceLoginAuth" id="gaia_loginform"> <input name="GALX" type="hidden" value="tqYGU2ugkkM"> <input type="hidden" id="_utf8" name="_utf8" value="☃"/> <input type="hidden" name="bgresponse" id="bgresponse" value="js_disabled"> <label class="hidden-label" for="Email">Email</label> <input id="Email" name="Email" type="email" placeholder="Email" value="" spellcheck="false" class=""> <label class="hidden-label" for="Passwd">Password</label> <input id="Passwd" name="Passwd" type="password" placeholder="Password" class=""> <input id="signIn" name="signIn" class="rc-button rc-button-submit" type="submit" value="Sign in"> <input type="hidden" name="PersistentCookie" value="yes"> <a id="link-forgot-passwd" href="https://accounts.google.com/RecoverAccount" > Need help? </a> </form>
$response_code=$client->post( "https://accounts.google.com/ServiceLogin" , array("GALX" => "lecoderecupéré", "Email" => "login", "Passwd" => "motdepasse") );
Oops! Your browser seems to have cookies disabled. Make sure cookies are enabled or try opening a new browser window.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionrequire_once "pear/HTTP/Request.php"; require_once "pear/Client.php"; $client_cookie =& new HTTP_Request("http://mon_serveur.net"); $client_cookie->addCookie("GALX", "lecodebizarreGmail"); $response_cookie = $client_cookie->sendRequest(); $client_post=&new HTTP_Client(); $response_post_code=$client_post->post( "https://accounts.google.com/ServiceLoginAuth",array("GALX" => "lecodebizarreGmail", "Email" => "mail@gmail.com", "Passwd" => "password") ); $response_post=$client_post->currentResponse(); echo $response_post['body']
require_once "pear/Client.php"; setcookie('GALX', 'lecodebizarreGmail', time() + 365*24*3600); $client_post=&new HTTP_Client(); $response_post_code=$client_post->post( "https://accounts.google.com/ServiceLoginAuth",array("GALX" => "lecodebizarreGmail", "Email" => "mail@gmail.com", "Passwd" => "password") ); $response_post=$client_post->currentResponse(); echo $response_post['body']