Jump to content

Archived

This topic is now archived and is closed to further replies.

lowboy

HELP: Open external website using cookie info from php?

Recommended Posts

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

Share this post


Link to post
Share on other sites
You can use [url=http://www.php.net/curl]cURL[/url] for that.
A good (and short) tutorial that will help you understand what cURL can do can be found [url=http://www.higherpass.com/php/Tutorials/Using-Curl-To-Query-Remote-Servers/]here[/url].

Good luck.

Orio.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.