Apparently this is more complicated than I think:
I want to post an "answer" on Yahoo answers:
curl --cookie cjar --data "answer=something&submit-button=Submit" http://answers.yahoo.com/question/answer?qid=20130131235603AAuPnZi
This appears to fill out the textarea, but does not submit it.
separate your post parameters:
-d answer=whatever -d submit=Submit
Sorry, this isn't working. The resultant web page appears to have the textarea filled out, but the form is not submitted. Huh.
Can someone take a look at the linked web page to see if my parameters are messed up or something?
Last edited by Mindstormscreator (2013-02-03 22:24:16)
OK, I've tried adding a bunch more parameters as sniffed out by the TamperData plugin for Firefox:
curl --cookie cjar -d "answer=test+data" -d "source=test+data" -d "crumb=kS2D%2FHqHgSS" -d \ "data=YTozOntzOjM6InFpZCI7czoyMToiMjAxMzAyMDMxNDUyMjBBQTYzRURvIjtzOjQ6InN0ZXAiO3M6NzoicHJldmlldyI7czo1OiJ0b2tlbiI7aToxMzU5OTM5ODEzO30%3D"\ -d "submit-button=Submit" http://answers.yahoo.com/question/answer?qid=20130203145220AA63EDo
Still doesn't work. Hmm.