On Mon, Mar 21, 2005 at 05:14:08PM +0000, Tomer Chachamu wrote:
On Mon, 21 Mar 2005 15:07:50 +0000, Jim Higson
<jh(a)333.org> wrote:
I'm trying to programatically submit edits to
my wiki via a http post, using
XMLHTTP. However, I am unable to 'persuade' the server to accept them. The
server always responds as if I'm asking for a preview.
Either:
* I'm not making the upload requests correctly
* There is a server side security model that forbids this
* I'm going mad :)
You can see the form-data I'm sending by going here:
http://81.5.150.113/wysi/Very_small_test?debug=yes&action=edit
then change the wikitext and click save, the request and response body will
be shown on the right (which I use as a debugging area)
Any help would be really appreciated, this is a real show-stopper for my
project.
Are you loading the edit page first and taking the wpEditToken? You
need it. (It's used for various things, including detection of edit
conflicts.)
Yes, but why in mediawiki-1.3.11, I have the same result when I'm using the
canonical edit form? Tokens just fail to match. As well as some users get
logged out right when they try to edit anything (cookies are ok on both
server and clients), but I cannot reproduce this.
--
X windows: A software disaster of Biblical proportions.