PHP Classes

Yahoo! Login

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Yahoo! Login  >  (Un) Subscribe thread alerts  
Subject:Yahoo! Login
Summary:How to get through Yahoo's Security
Messages:84
Author:Erick Bajao
Date:2005-10-12 03:50:41
Update:2007-11-17 20:53:27
 
  1 - 10   11 - 20   21 - 30   31 - 40   41 - 50   51 - 60   ...   80 - 84  

  21. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-12-04 12:09:28 - In reply to message 20 from Jason Brumwell
Hi! I already made it work with Yahoo!, Hotmail, and Gmail... Sorry, I wasn't able to submit the classes coz I'm still busy at work..

  22. Re: Yahoo! Login   Reply   Report abuse  
Picture of Jason Brumwell Jason Brumwell - 2005-12-04 19:19:16 - In reply to message 21 from Erick Bajao
I was able to get gmail working last night it was pretty straight forward still not sure why yahoo isn't working. if you'd have time to shoot me a quick email with the class it would be greatly appreciated. liberator868[at]hotmail.com

thanks

Jay

  23. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-12-04 19:36:11 - In reply to message 19 from Jason Brumwell
The latest version of the class handles secure cookies correctly. Just download and use that version which is in this site.

  24. Re: Yahoo! Login(err.. friendster)   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-12-09 08:26:49 - In reply to message 23 from Manuel Lemos
Hi! I'm now working on friendster.com and I'm trying to login automatically to their site.. but I always end up with this error:

Error: it was not possible to send data to the HTTP server

I dont know what's wrong here coz I followed exactly what appeared in LiveHTTPHeader... I was also able to login friendster with javascript disabled in my browser...

You can see the test results here:
gallery.ph/frederick/php/httpclient ...

I'm using the latest version of the class..

Thank you very much...

Erick

  25. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-12-09 20:48:41 - In reply to message 24 from Erick Bajao
I just tried it and could login successfully. Maybe you are missing POST values. I used these:

$arguments["PostValues"]=array(
"_submitted"=>"1",
"next"=>"/home.php?statpos=index",
"tzoffset"=>"",
"email"=>"[email protected]",
"password"=>"mypassword",
);

  26. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-12-12 03:53:16 - In reply to message 25 from Manuel Lemos
Hi, Those are the arguments that I'm already using so I think the problem is not with the post arguments...

Sorry if I have to post the code here coz I don't know where I can publicly post it..

<?php
require('http.php');
$http = new http_class();
set_time_limit(0);
$http->timeout=0;
$http->data_timeout=0;
$http->debug=1;
$http->html_debug=1;
$http->user_agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
$http->follow_redirect=1;
$http->redirection_limit=5;

$url = 'http://www.friendster.com/index.php';
$http->GetRequestArguments($url,$arguments);
$arguments["RequestMethod"]="GET";
$arguments["Headers"]["Pragma"]="nocache";
flush();
$error=$http->Open($arguments);
if($error == ''){
$error=$http->SendRequest($arguments);
if($error == ''){
$headers=array();
$error=$http->ReadReplyHeaders($headers);
if($error == ''){
for(;;)
{
$error=$http->ReadReplyBody($body,1000);
if($error!="" || strlen($body)==0)
break;
$result .= $body;
}
$currentContent = $result;
$result = '';

$http->Close();

$url = 'http://www.friendster.com/index.php';
$http->GetRequestArguments($url,$arguments);
$arguments["RequestMethod"]="POST";
$arguments["Headers"]["Pragma"]="nocache";
$arguments["PostValues"]=array(
"_submitted"=>"1",
"next"=>"/home.php?statpos=index",
"tzoffset"=>"",
"email"=>'[email protected]',
"password"=>'123abc',
);
$error=$http->Open($arguments);
if($error == ''){
$error=$http->SendRequest($arguments);
if($error == ''){
$headers=array();
$error=$http->ReadReplyHeaders($headers);
if($error == ''){
for(;;)
{
$error=$http->ReadReplyBody($body,1000);
if($error!="" || strlen($body)==0)
break;
$result .= $body;
}
$currentContent = $result;
$result = '';

$http->Close();

echo 'BODY::'.$currentContent;
}
}
}
}
}
}
if(strlen($error)){
echo "<CENTER><H2>Error: ",$error,"</H2><CENTER>\n";
}
?>

  27. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-12-12 05:28:37 - In reply to message 26 from Erick Bajao
You are using the GET method. It should be POST.

  28. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-12-12 05:51:38 - In reply to message 27 from Manuel Lemos
no, im only using the get method to access the login page.. then i use post method to submit the values... please check the code:

$url = 'http://www.friendster.com/index.php';
$http->GetRequestArguments($url,$arguments);
$arguments["RequestMethod"]="POST";
$arguments["Headers"]["Pragma"]="nocache";
$arguments["PostValues"]=array(
"_submitted"=>"1",
"next"=>"/home.php?statpos=index",
"tzoffset"=>"",
"email"=>'[email protected]',
"password"=>'123abc'
);

  29. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-12-12 06:09:50 - In reply to message 28 from Erick Bajao
The script has 2 requests.. The first one uses GET method(even without specifying it, has no bearing).. This will lead me to the login page so I can store whatever cookies the site requires.. Then it will send another request with the POST method and submits the values.. now that's the part where the problem arises...

  30. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-12-12 08:25:35 - In reply to message 29 from Erick Bajao
I also tried it with MySpace.com and I get the same error... Correct me if I'm Wrong, but it seems that I'm having problems when posting to 'http' urls... Because I was successful with Yahoo, Hotmail, and Gmail which login urls are 'https'... Am I missing any arguments? If you don't mind can you please post the code you used when logging in friendster?

Thank you very much..:)

 
  1 - 10   11 - 20   21 - 30   31 - 40   41 - 50   51 - 60   ...   80 - 84