twitter question

Discussion in 'General Programming Chat' started by essares1, Oct 31, 2009.

  1. essares1

    essares1 Junior Member

    Joined:
    Apr 27, 2009
    Messages:
    163
    Likes Received:
    27
    why does twitter have two hidden fields named 'authenticity_token' while posting the login form? I just don't get how do you send to hidden fields of the same name?
     
  2. LilWayne

    LilWayne BANNED BANNED

    Joined:
    Aug 20, 2009
    Messages:
    34
    Likes Received:
    12

    If you want to fill those fields when the form is POSTED. Add your hidden variable - For example:

    google.com/hello.php?id=lilwayne&password=3838&authenticity_token=whateveruwantou

    or if this helps you better understand:
    google.com/submit.php?authenticity_token=hheheheheh


    Hope this helps
     
  3. essares1

    essares1 Junior Member

    Joined:
    Apr 27, 2009
    Messages:
    163
    Likes Received:
    27
    Thanks for trying to help but you didn't get my question. I know how to post hidden fields. My question is there are exactly two authenticity_token fields being posted while logging in to twitter. And it is not working if you post one field. And I am unable to set two fields with the same name while posting with php using cURL.

    Hope you got my question now.
     
  4. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    716
    Location:
    127.0.0.1
    Just use one field with cURL. Is that a problem? Probably the browser ignore the duplicated field and send just one (maybe the first).