|
|
 Collin Schaafsma - 2005-12-14 01:20:24 - In reply to message 40 from Matias Prasodjo
I think i'm getting close as far as signing into yahoo groups... however, now I'm being told that the login fails because my browser doesn't accept cookies. My browser does naturally... is there something I have to do for the http class to accept cookies?
This is in the http.php class file.
var $support_cookies=1;
var $cookies=array();
Thank you for your help!
Collin
 Manuel Lemos - 2005-12-14 02:11:51 - In reply to message 41 from Collin Schaafsma
The class always collects and sends back cookies gathered by the same HTTP class object.
I don't know where it appears that the browser does not support cookies. I have not tried but maybe it is a matter of spoofing the browser identity by setting the user_agent variable to the identity of a real browser.
 Manuel Lemos - 2005-12-14 02:14:19 - In reply to message 41 from Collin Schaafsma
The class always collects and sends back cookies gathered by the same HTTP class object.
I don't know where it appears that the browser does not support cookies. I have not tried but maybe it is a matter of spoofing the browser identity by setting the user_agent variable to the identity of a real browser.
 Erick Bajao - 2005-12-14 02:37:49 - In reply to message 43 from Manuel Lemos
Hi! I just tested the older version of httpclient-2005-11-17 and it worked very well with Yahoo, Hotmail, Gmail Class... I think there's something wrong with the latest version ..
 Erick Bajao - 2005-12-14 02:43:37 - In reply to message 44 from Erick Bajao
@collin
Hi, if youre using the httpclient-2005-11-17 version, the YahooGrabber class should work fine... Just use the login() method then send another request to the page where yahoo groups is... the login() will log you in yahoo! mail but that doesnt matter coz once youre logged in any yahoo service, you can use all of them... hope this helps..
 Manuel Lemos - 2005-12-14 15:53:51 - In reply to message 44 from Erick Bajao
Maybe something got broken with the latest fixes. Can you provide an example of script that shows what is not working?
 Erick Bajao - 2005-12-15 02:21:43 - In reply to message 46 from Manuel Lemos
I'm really not sure what part of the script is not working but maybe it is in the login part... IMO, if the older version post request works well with https sites and not with http ones, the latest version is vice versa... With the latest version I can't login to Yahoo, Hotmail and Gmail, but I made it work with Friendster and MySpace...
 Manuel Lemos - 2005-12-15 18:17:36 - In reply to message 47 from Erick Bajao
I just need the simplest script that shows that it is not working with the latest version, so I can see the difference.
 Erick Bajao - 2005-12-16 02:40:30 - In reply to message 48 from Manuel Lemos
Hi, here's the login script for yahoo mail... If the login was successful it should output the main inbox page of the user.. If not it wil output the login page.. works well with 2005-11-17 version..
you can see the script here:
gallery.ph/frederick/php/httpclient ...
Thanks!
 Manuel Lemos - 2005-12-17 04:19:43 - In reply to message 49 from Erick Bajao
It seems that Yahoo does not handle cookie values UrlEncoded properly.
I have uploaded a fixed version of the class that avoids encoding characters that really do not need to be encoded. Now it logs in Yahoo successfully. Thank you for reporting.
|