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 ‘pars’,
  • value ‘all’ as ‘parselect’,
  • tree’ as style of presentation,
  • 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, "mode":"tree", "parselect":"all", "pars":[{"selection_name":"cond_wwdm.A","cname":"cond_wwdm","pname":"A","value":0.0064},{"selection_name":"cond_wwdm.Eb","cname":"cond_wwdm","pname":"Eb","value":1.86}]}' http://erecord.toulouse.inra.fr:8000/vpz/input/