Example of POST vpz/input in command line with cURL

For the simulator ‘wwdm.vpz’ whose Id is 266, enter the cURL commands in a command line window.

Example illustrating :

  • modifying begin,

  • modifying duration,

  • modifying some parameters by ‘cname.pname’,

  • compactlist’ as style of presentation,

  • values of type cname.pname as ‘parselect’ :

    value ‘cond_wwdm.A’ to select the parameter named ‘A’ of the condition named ‘cond_wwdm’.

    value ‘cond_wwdm.B’ to select the parameter named ‘B’ of the condition named ‘cond_wwdm’.

    value ‘cond_wwdm.Eb’ to select the parameter named ‘Eb’ of the condition named ‘cond_wwdm’.

    value ‘cond_wwdm.TI’ to select the parameter named ‘TI’ of the condition named ‘cond_wwdm’.

  • with ‘application/json’ as ‘Content-Type’

REQUEST and RESPONSE

Memo


cURL command line :

curl -L -H "Content-Type: application/json" -d '{"vpz":266, "duration":6, "begin":2453982.0, "cond_wwdm.A":0.0064, "cond_wwdm.Eb":1.86, "mode":"compactlist", "parselect":["cond_wwdm.A", "cond_wwdm.B", "cond_wwdm.Eb", "cond_wwdm.TI"]}' http://erecord.toulouse.inra.fr:8000/vpz/input/

Some variants :

-------------------------------------------------------------------------------
- Content-Type: application/x-www-form-urlencoded
- format yaml

curl -H "Content-Type: application/x-www-form-urlencoded" -d 'vpz=266&duration=6&begin=2453982.0&cond_wwdm.A=0.0064&cond_wwdm.Eb=1.86&mode=compactlist&parselect=cond_wwdm.A&parselect=cond_wwdm.B&parselect=cond_wwdm.Eb&parselect=cond_wwdm.TI&format=yaml' http://erecord.toulouse.inra.fr:8000/vpz/input/

-------------------------------------------------------------------------------