fatkatie Posted July 15, 2019 Share Posted July 15, 2019 I'm a little familiar with Perl's lwp and I've scraped a few sites. But I've never logged in remotely AND presented a 'protected' page to the user. Is it possible to login remotely and then open a page for a user via a link? We have the credentials but we're sick of the login dance. I'll invest some time figuring it out if someone can tell me if this is even possible. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/308971-login-to-a-remote-site-with-php-curl/ Share on other sites More sharing options...
fatkatie Posted July 15, 2019 Author Share Posted July 15, 2019 It's not working , but after a login, can it be this simple? curl_setopt($ch, CURLOPT_URL, $gotoUrl); $content = curl_exec($ch); echo $content; Quote Link to comment https://forums.phpfreaks.com/topic/308971-login-to-a-remote-site-with-php-curl/#findComment-1568412 Share on other sites More sharing options...
fatkatie Posted July 15, 2019 Author Share Posted July 15, 2019 Op... I think I'm on my way. Feel free to nuke the post if you wish. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/308971-login-to-a-remote-site-with-php-curl/#findComment-1568413 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.