Strahan Posted October 11, 2009 Share Posted October 11, 2009 Hi. I want to read a website remotely via PHP. Problem is, it requires login. I can log in by opening the URL with the querystring setup to do a login, and that works but when I send the next query to get data it acts like I never logged in. I assume that's because it sets a cookie or something that isn't persisting. Is there any way around that? Thanks! Link to comment https://forums.phpfreaks.com/topic/177288-reading-remote-websites-that-use-cookies/ Share on other sites More sharing options...
GKWelding Posted October 11, 2009 Share Posted October 11, 2009 You'll want to use the PHP cURL library... http://uk2.php.net/manual/en/ref.curl.php You'll need to use the curl_setopt (http://uk2.php.net/manual/en/function.curl-setopt.php) function after curl_init to allow it to use cookie sessions. Link to comment https://forums.phpfreaks.com/topic/177288-reading-remote-websites-that-use-cookies/#findComment-934781 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.