Tim McKenna wrote:
Hi,
I went through the sample steps in the API
example<http://www.mediawiki.org/wiki/API:Edit_-_Create%2526Edit_pages#E…
on using the api to edit a page:
1. login your bot: ( I just used my admin login) - it succeeds
2. get a token - it suceeds
3. post to api.php - this is the form I
use<http://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+\