Jump to content


Photo

HELP: Open external website using cookie info from php?


  • Please log in to reply
2 replies to this topic

#1 lowboy

lowboy
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 October 2006 - 02:07 PM

I need to use php to open a forum website (fopen/copy, etc), grab the content, and then parse/do things with it.

The site uses a cookie-based login system. Once a user logs in it's the cookies which allow them to see the forum contents. Otherwise, there's a "not logged in" page that gets displayed.

So I need to somehow make php appear to be a browser with my stored login cookies. Is this doable?

Thanks,
Jason

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 22 October 2006 - 02:31 PM

You can use cURL for that.
A good (and short) tutorial that will help you understand what cURL can do can be found here.

Good luck.

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 lowboy

lowboy
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 October 2006 - 03:48 PM

Thanks, Orio! I had no idea that cUrl existed.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users