Tim McKenna wrote:
Hi, I went through the sample steps in the API examplehttp://www.mediawiki.org/wiki/API:Edit_-_Create%2526Edit_pages#Example on using the api to edit a page:
- login your bot: ( I just used my admin login) - it succeeds
- get a token - it suceeds
- post to api.php - this is the form I
usehttp://pathboston.com/forms/mw/append21.html- after I get the token I replace the +\ with %2B%5C
Wrong. All form items must be urlescaped. That process will convert +\ to %2B%5C, spaces to %20, etc. Process each value, do not perform blind string replaces.
Since you are using a web form, when submitting *your browser already urlescapes it*. So you must place the original text. Thus, you are sending the token ababab%2B%5C (sent as ababab%252B%255C) instead of ababab+\