iRoot121 Posted January 9, 2016 Share Posted January 9, 2016 Hi guys, I wanted to make a script login to the website Marktplaats.nl, but it doesn't seem to work.. At the moment I can't post the code as it's on my laptop. Does anyone know how to login and maybe do other stuff on Marktplaats.nl with cURL? Kind regards, Kevin Ruhl. Quote Link to comment https://forums.phpfreaks.com/topic/300247-curl-login-for-website/ Share on other sites More sharing options...
kaleshwarchand Posted January 9, 2016 Share Posted January 9, 2016 in short you need to post to the login page https://auth.marktplaats.nl/accounts/authentication/login with username and password (field for username bieng j_username, and password bieng password) you will need cookies set: curl_setopt($ch,CURLOPT_COOKIEJAR,$cookieFile); curl_setopt($ch,CURLOPT_COOKIEFILE,$cookieFile); verify cookieFile exists and is writeable. you may need to disable https verification (or enable it properly) curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); you may also need to set browser type (if the site uses it for sending diffirent content or something) that should get you logged in, then just check the urls, forms that you want to use and send the same data you would manually. Quote Link to comment https://forums.phpfreaks.com/topic/300247-curl-login-for-website/#findComment-1529351 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.