[pmwiki-users] GET/POST generated by a windows client/server tool
Patrick R. Michaud
pmichaud at pobox.com
Wed Mar 12 19:06:21 CDT 2008
On Wed, Mar 12, 2008 at 11:34:31PM +0100, St�phane Heckel wrote:
>
> Greetings,
>
> I'm testing a very popular tool in France that can be used to develop
> GUI&database applications on windows.
>
> There is one instruction that can be used to 'connect' to internet and play
> with get&post to simulate inputs, ..
> ie : If I want to simulate the 'POST' login/password process on the Pmwiki
> login page, I just have to run the following :
>
> StrParam is a string
> StrParam = "authid=steph"
> StrParam += "&authpw=pword"
> Res =
> HTTPRequ�te(http://localhost/index.php?n=Main.HomePage?action=login?,"","",StrParam)
>
> It works, ..
>
> I now want to extend the use of this concept and update a page, ... I use
> the same mechanism, ...
>
> StrParam = "basetime=1205318858"
> StrParam += "&text=toto"
> StrParam += "&csum=textwindev"
> StrParam += "&author=steph"
> StrParam += "&diffclass=minor"
You also need &action=edit, &post=1, and possibly n=Main.HomePage.
Since the request is coming in as a POST request, PHP
(and/or other items) may not look at the url for additional
parameters such as ?action= and ?n=. So, the edit form
that is POSTed has the action= and n= values as hidden
fields in the form.
You also need post=1 (or post=something) so that PmWiki knows
that the page is being submitted as a "save page" button
as opposed to some other action (e.g., Preview, Save+Edit,
Cancel, etc.).
Pm
More information about the pmwiki-users
mailing list