sendHttpPostRequest("http://localhost/web/message?text=Text of message&type=2&timeout=5")
this one not.
Error message:
2018-01-18 15:54:06.173 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Werte initial setzen': Illegal character in query at index 38: http://localhost/web/message?text=Text in Message&type=2&timeout=5
val String request = "http://localhost/web/message?text=Text of message&type=2&timeout=5"
sendHttpPostRequest(URLEncoder::encode(request))
or
val String request = "http://localhost/web/message?text=Text of message&type=2&timeout=5"
sendHttpPostRequest(URLEncoder::encode(request, "ISO-8859-1"))
if you have more than one Url Request… make a switch case in BashScript
#!/bin/bash
case $1 in
1)
curl http://localhost/web/message?text=FIRST Text of message&type=2&timeout=5
;;
2)
curl http://localhost/web/message?text=SECOND Text of message&type=2&timeout=5
;;
*)
echo "Kommando nicht vorhanden!"
;;
esac