By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,661 Members | 1,917 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,661 IT Pros & Developers. It's quick & easy.

Yahoo Login Issues

P: n/a
I'm trying to write a script that logs into Yahoo Fantasy Football.
Once logged in, I'll be able to grab stats and various other pieces of
info about our league. The problem I'm having deals with actually
logging in programatically.

I've been using Snoopy to help with the user agent side of things and
it seems to work well. I can successfully put together a valid yahoo
login URL based on username/password/challenge. It looks like the
following:

http://login.yahoo.com/config/login?....hash=1&.md5=1
The problem I'm having is that the login page tries to set a cookie and
I'm not sure how to accept that cookie in my script. Once I have the
cookie I can use Snoopy to pass it to subsequent http requests.
Any ideas?

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello,

On 08/27/2004 01:10 AM, bryce21 wrote:
I'm trying to write a script that logs into Yahoo Fantasy Football.
Once logged in, I'll be able to grab stats and various other pieces of
info about our league. The problem I'm having deals with actually
logging in programatically.

I've been using Snoopy to help with the user agent side of things and
it seems to work well. I can successfully put together a valid yahoo
login URL based on username/password/challenge. It looks like the
following:

http://login.yahoo.com/config/login?....hash=1&.md5=1
The problem I'm having is that the login page tries to set a cookie and
I'm not sure how to accept that cookie in my script. Once I have the
cookie I can use Snoopy to pass it to subsequent http requests.


You may want to try this HTTP client class that is capable of tracking
cookies and send them back to the server of the same domain.

http://www.phpclasses.org/httpclient
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #2

P: n/a
"bryce21" <br***********@hotmail.com> wrote in message news:<cg********@odbk17.prod.google.com>...
<snip>
http://login.yahoo.com/config/login?....hash=1&.md5=1


The problem I'm having is that the login page tries to set a cookie and
I'm not sure how to accept that cookie in my script. Once I have the
cookie I can use Snoopy to pass it to subsequent http requests.


1. http://in.php.net/curl
2. http://curl.haxx.se/libcurl/php/exam...=cookiejar.php
3. http://theory.cs.iitm.ernet.in/~arvindn/yahoo/

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.