Jump to content
Sign in to follow this  
iRoot121

cURL login for website

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

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.