With the introduction of the strikeone request validation mechanism the options to update a topic in a command (scripted) mode has changed. The following
FAQ aims to provide some clarity on this and can be considered a work in progress until a number of test cases have been verified by end users. There are many different configurations possible with Foswiki and it is not guaranteed that the below examples will
If you are looking to integrate from a extension point of view you should refer to
HowToIntegrateWithRequestValidation
Please feel free to amend/add some extra examples below.
Strikeone Disabled/TemplateLogin
The following command works with the strikeone mechanism turned off and the login template in use is the TemplateLogin:
Single Form Field Update
curl -s -S -L -f -o - -d "username=USER" -d "password=PASSWORD" -d "FORMFIELD_NAME=FORMFIELD_VALUE" --url http://foswiki-url/bin/save/WEB/TOPIC
Multiple Form field update
curl -s -S -L -f -o - -d "username=USER" -d "password=PASSWORD" -d "FORMFIELD1_NAME=FORMFIELD1_VALUE&FORMFIELD2_NAME=FORMFIELD2_VALUE" --url http://foswiki-url/bin/save/WEB/TOPIC
With Strikeone Enabled
To be completed