I login manually, send a query to get the edit token(not using curl) and then put that token in the postfields.

I have a http form version that works and makes the edits. The postvar string of that version looks exactly like what comes out of the curl version.

On Tue, Dec 14, 2010 at 2:59 AM, Bryan Tong Minh <bryan.tongminh@gmail.com> wrote:
On Tue, Dec 14, 2010 at 3:00 AM, Tim McKenna <mckenna.tim@gmail.com> wrote:
> When I post from a form I have no trouble having action=edit work.
>
> But when I send the same $postdata through a curl script I get: error
> code="badtoken".
>
Do you login using curl? Do you send the edit token?

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api