#!/opt/bin/bash

echo Content-type: text/html
echo ""

/bin/cat << EOM
<HTML>
<HEAD><TITLE>Start StuBru</TITLE>
</HEAD>
<BODY bgcolor="#cccccc" text="#000000">
<P>
<SMALL>
<PRE>
EOM

USERNAME=xbmc
PASSWORD=xbmc
SERVER=192.168.1.12
PORT=80

echo "sending update request to $SERVER"

curl -i -X POST -H "Content-Type: application/json" -d '{"method":"Player.Open","id":44,"jsonrpc":"2.0","params":{"item":{"file":"http://mp3.streampower.be/stubru-high.mp3"}}}' http://${SERVER}:${PORT}/jsonrpc

/bin/cat << EOM
</PRE>
</SMALL>
<P>
</BODY>
</HTML>
EOM



