For me, this kind of communication is difficult. I am a Windows 10 standard user and no software expert. Solved the issue like following, and hope that this can help other users like me:
Created a misc folder and the exec.whitelist file C:\openHAB2\conf\misc\exec.whitelist
Have many Curl commands driving an Arduino as infrared transmitter for multiple automations as below (example). The complete strings as shown need to be in the exec.whitelist, separated using LF (not CRLF). With CRLF it doesn’t work out. Used notepad++ and replaced \r\n by \n to assure this.
If the exec binding is running, a new command is working out immediately.
C:\Curl\curl -i “http://192.168.1.101/messages” -H “X-Requested-With: curl” -d “{“freq”:38,“format”:“raw”,“data”:[6648,3228,904,735,904,735,904,735,904,735,904,735,904,735,904,2368,904,761,904,761,904,761,904,761,904,761,904,761,904,761,904,761,904,761,904,761,904,761,904,2368,904,735,904,2368,904,735,904,735,904,735,904,2368,904,735,904,735,904,735,904,735,904,735,904,735,904,2451,904,2451,904,735,904,2368,904,735,904,735,904,2368,904,735,904,735,904,735,904,2368,904,2368,904,735,904,735,904,735,904,2368,904,2368,904,735,904,735,904,2368,904,2368,904,2368,904,735,904,735,904,735,904,2368,904,735,904,2368,904,735,904,735,904,2368,904,2368,904,2368,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,2368,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,735,904,2368,904,735,904,735,904,735,904,2368,904,735,904]}”
A workarround as Windows equivalent to the Linux “touch” command (after an openhab restart) is “copy exec.whitelist+”. This generates a new file with a new timestamp and without any changed content. Can be used until the bug is fixed.