curl-and-php
Re: Help - Using CURL - PHP to login to Yahoo Mail
Date: Mon, 28 Mar 2005 10:17:08 -0500
Are you processing the password correctly? You have to append their
challenge hash to a hash of your password and then encode the entire thing
and submit that hash as the password.
I use some custom libraries I made, so the code won't be useful to you
as-is, but it should give you an idea of what you need to do.
Here's some sample code:
$hash = md5("your password") . $form->get_input_value(".challenge");
$hash = md5($hash);
$form->set_input_value("login","your login");
$form->set_input_value("passwd",$hash);
$form->set_hidden_value(".js",1);
$form->set_hidden_value(".hash",1);
$form->set_hidden_value(".md5",1);
Best,
Kirk
At 09:58 PM 3/26/2005, you wrote:
>I’m having some trouble login into Yahoo mail using Curl and PHP… I always
>get “INVALID PASSWORD”, I’m sending all of the parameters, cookies and
>everything…
>
>Does anyone have a working example?
>
>
>Thanks
>Naveed
Received on 2005-03-28