|
|
 hiddenlife - 2007-02-11 12:00:06 - In reply to message 70 from Manuel Lemos
Thank you very much, In this case, if you want to set the cookies in the browser so that after you log in by the class, you can do anything you want, how to do that?
 bill nye - 2007-02-15 17:44:15 - In reply to message 71 from hiddenlife
I am very happy to find this script! Very well done! Unfortuanately a lot of users have the function "fopen()" disabled. What is the alternative to the following in CURL:
fopen($this->cookieFileJar, "w");
I tried "curl -c $this->cookieFileJar" but to no avail.
 Manuel Lemos - 2007-02-15 21:56:39 - In reply to message 72 from bill nye
The problem is that you are using safe mode and you may not be allowed to write files to the directory you want to write.
Maybe you can use the serialize() with the cookies array and store the resulting string in a database table field.
 hiddenlife - 2007-02-21 08:15:24 - In reply to message 73 from Manuel Lemos
I think the class is pretty slow when transfering data...
can you make it run faster?
for example if i log in then I do something after that,
it usually takes 2-> 4 secs for each request, I have the feeling the runtime is getting slower, the first requests it took 2 sec, then later it took 3 or sec...
Is there anyway to make it faster?
 Manuel Lemos - 2007-02-21 22:44:24 - In reply to message 74 from hiddenlife
Yes, I could avoid closing the connection if persistent connections are supported. Right now I do not have time to look into it, but I may implement it later, unless somebody wants to submit some patches before I do it.
 ngoc quynh - 2007-04-13 06:41:08 - In reply to message 75 from Manuel Lemos
hi,
first, thank you for the great class.
I want to login in yahoo, then post a comment in blog.
but it seem not done.
Can you help me.
Thank alot.
.... after login ...
$url = "http://360.yahoo.com/guestbook-wYTKGEg5bqhis3J_KqHeWcdVXnk-?cq=1&.done=%2Fprofile-wYTKGEg5bqhis3J_KqHeWcdVXnk-%3Fcq%3D1%23ymgl-guestbook";
$yahoo->http->GetRequestArguments($url, $arguments);
$arguments['RequestMethod'] = 'POST';
$arguments['PostValues'] = array(
'verb%5B%5D' => 'Hug',
'comment' => 'hello+world',
'post' => 'Post',
'.crumb' => 'QRC3y8WMd.g',
'form_submitted' => 'guestbook'
);
$arguments['Headers']['Referer'] = "http://360.yahoo.com/profile-wYTKGEg5bqhis3J_KqHeWcdVXnk-?cq=1";
$arguments['Headers']['Pragma'] = "nocache";
if (!$yahoo->GetRequestResponse($response)){
echo "Error";
exit;
}
echo $response;
 ngoc quynh - 2007-04-13 17:44:54 - In reply to message 76 from ngoc quynh
thanks,
I sloved my problem.
But as you say, the tranfering data so slow.
With me, it take about 4-7 sec for 1 request.
Can you make it faster.
Thanks
 Manuel Lemos - 2007-04-13 18:46:57 - In reply to message 77 from ngoc quynh
I will try to make it faster as soon as I have more time to work on this class. Please be patient.
 Michael SOmeone - 2007-04-16 12:17:35 - In reply to message 78 from Manuel Lemos
Hi,
Thankyou for this excellent class, i have used it so succesfully login to many websites, including myspace. But i am having massive difficulties when trying to login to flickr.com, this is the link to sign in:
www.flickr.com/signin
And as you can see the HTML and hidden values are similar but not the same to those found in your yahoo_user.php file, so i tried changing them, and changing the URL to send the POST request to, but, still, nothing!
If you could tell me what i am doing wrong, or how to login to flickr(which is a yahoo-owned company, so it uses it's user system) then i would be very grateful.
PS: Once i login with your yahoo login() function, and then send the current session to perform a GET request on www.flickr.com/signin , it asks me to verify my password, i don't know how to bypass this.
 Manuel Lemos - 2007-04-16 18:34:35 - In reply to message 79 from Michael SOmeone
I have not checked Flickr, but it probably works differently from Yahoo.
Anyway, have you checked Flickr API? Unlike Yahoo, Flickr provides an extensive API to perform many types of operations via Web services.
You still need the HTTP class to access Flickr Web services, but at least it was thought to perform remote Web operations and works reliably without depending on eventual changes of the site pages design.
Take a look here to learn more about Flickr API:
flickr.com/services/api/
|