actually this is a general question. I am trying to do a log in to pinterest to post photos automatically. but doing so, I am getting: 403 forbidden for the status, and "CSRF verification failed. Request aborted."

I am almost sure that I should be able to emulate a login, unless they have a CAPTCHA on the form which they don't - and I can see the cookie for the CSRF token - but I don't know how the string would translate in real life as no hidden fields are visiable on the pinterest login form.

Thank you for helping, any links on the specs for hidden field(s) would be great, I found this: http://stackoverflow.com/questions/9692625/csrf-verification-failed-request-aborted-on-django - but I can't see the specs for the fields

    The correct approach would be to use an API to login your users to pinterest, but apparently pinterest does not have an API yet, so I think that you should shelve this feature for now.

    sfullman wrote:

    I am almost sure that I should be able to emulate a login, unless they have a CAPTCHA on the form which they don't - and I can see the cookie for the CSRF token - but I don't know how the string would translate in real life as no hidden fields are visiable on the pinterest login form.

    You are mistaken: I can find the csrfmiddlewaretoken hidden form element in the source of their login page.

      Write a Reply...