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! Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.