I'm trying to control my Roku from a java application. You do this by sending a html POST request with no body to your Roku's ip (http://192.000.1.82:8060/keydown/Left). Currently I have this code:
HttpURLConnection urlConn;
URL mUrl = new URL("html://192.000.1.82:8060/keypress/Right");
urlConn = (HttpURLConnection) mUrl.openConnection();
urlConn.setRequestMethod("POST");
However, nothing seems to be happening. The SDK says "keydown is followed by a slash and the name of the key pressed. Keydown is equivalent to pressing down the remote key whose value is the argument passed. This command is sent via a POST with no body." Maybe I'm misinterpreting this?
What am I doing wrong? Any help is appreciated.