Showing results for 
Search instead for 
Did you mean: 

Executing REST request




i've got a question regarding the connection from PlantSim to an external service. I'd like to know if it's possible to execute a REST request to an external webserver.

Something like this I have in mind:

curl -X PUT "http://myServer/api/method" -d "{ "myVar": "Hello World"}"


If this is not possible, is it possible to execute a powershell or shell script with parameters? Or last possiblity: run a program (e.g. Node.js, PHP, ...) with additional parameters.


Thanks in advance


Re: Executing REST request

Gears Phenom Gears Phenom
Gears Phenom



Am not too sure about talking to an external web server but can help with running an external process.


startExtProc("cmd.exe /C md C:\temp\ReportGeneratorTemparyFolder", false, true)

Above is what I have done in the past to make a new folder using the command line function. The first boolean value is if the process is visible or not, while the second one is if Plant Sim should wait for it to termidate before continueing with the method.



Re: Executing REST request


Hello James


Thank you very much for your answer. That will help me quite a lot if executing a REST request is not possible. 


Does anyone know whether it's possible or not?