cURL and cookies

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
supmet
Forum Newbie
Posts: 2
Joined: Sat Jan 24, 2009 10:28 am

cURL and cookies

Post by supmet »

I'm trying to figure out how to get information off of a webpage that uses cookies for authentication..

More specifically I play a text based MMORPG. I want to make a list of players and their last online time. This online time is displayed on their profile on the webpage, but to see this information, you need to login.

There are 3 cookies, one for userid, one for username, and one for password(which is hashed).

Is there anyway to pass cookies from whatever browser a person is using, into the "virtual cURL browser?"

I've seen things where you can store cookies in cURL, but I don't want to use MY LOGIN everytime, as the game admins probably wouldn't appreciate that :P
supmet
Forum Newbie
Posts: 2
Joined: Sat Jan 24, 2009 10:28 am

Re: cURL and cookies

Post by supmet »

I guess this isn't really possible then...

Can anyone think of another way to get the desired result, not necessarily using cURL?

I just want one text string from each webpage on a list that require login cookies to view. I can do it with cURL and entering my cookie values, but that isn't a viable option for the final project, I would rather use the person who is viewing the webpages cookies to check for the information.

edit: hey cool a wow bot responded to my post
Post Reply