[pmwiki-users] Updating PmWiki with external applications

stevecrisp at gmail.com stevecrisp at gmail.com
Sun Jun 15 09:12:27 CDT 2008


I've looked at http://www.pmwiki.org/wiki/PmWiki/EditingAPI and can
post normal Wiki pages fine from external applications e.g. using curl
to post to Main.WikiSandbox I'd do:

curl -d "?n=Main.WikiSandbox&text=TestingWiki&action=edit&post=1&author=AuthorName"

My question is how would I do the same with uploading files, utilising
PmWiki's standard upload form e.g.
http://localhost/pmwiki.php/Main/WikiSandbox?action=upload.  I've
tried and tried and can not do it with curl.  Looking at the HTML from
PmWiki's upload form page I think it might be because the input line
below doesn't have a 'name' tag.

<input type='submit' value=' Upload ' />

should it be something like:

<input type='submit' name='dosubmit' value=' Upload ' />

That way I might be able to get curl to invoke the ' Upload ' post
action.  Experts ... over to you...


More information about the pmwiki-users mailing list