2018-12-27, 21:51
You can't just type a POST request in the browser. Well, you can, but not the address bar. You can use the console to write JavaScript that sends a POST request:
From what I understand, this is probably not possible in iRule though.
javascript:
var xhttp = new XMLHttpRequest();
xhttp.open("POST", "http://<yourKodiIP>/jsonrpc", true);
xhttp.setRequestHeader("Content-type", "application/json");
xhttp.send("{\"jsonrpc\":\"2.0\",\"method\":\"Player.PlayPause\",\"params\":{\"playerid\":1},\"id\":1}");
From what I understand, this is probably not possible in iRule though.