Why isn't CURL logging into external website?

前端 未结 3 1215
旧时难觅i
旧时难觅i 2021-01-07 08:58

I\'ve been experimenting over and over but what I\'ve got so far doesn\'t allow me to login into Pinterest with CURL and I cannot understand why..

function p         


        
3条回答
  •  一生所求
    2021-01-07 09:10

    I'm pretty sure this is not going to work without getting an request_identifier which is required. To explain, when you load the page you get an unique number for that 'session' which is compared when you are going to log in. This is for a reason to avoid CSRF (Cross-Site Request Forgery). If you examine the actual POST, you will notice that not only an username or password are posted, but a few items more.

提交回复
热议问题