General purpose proxy cgi-bin script allowing https streams to be played:
proxy.cgi
#!/bin/sh
if [ "$REQUEST_METHOD" != "GET" ]; then
echo "HTTP/1.0 501 Not implemented"
echo "Content-type: text/plain"
echo
echo "Not implemented"
exit 1
fi
# Allow local access only
if [ "$REMOTE_ADDR" != "127.0.0.1" ]; then
echo "HTTP/1.0 403 Forbidden"
echo "Content-type: text/plain"
echo
echo "Forbidden"
exit 1
fi
# Minimum 20 chars for the url length
if [ ${#QUERY_STRING} -lt 20 ]; then
echo "HTTP/1.0 400 Bad request"
echo "Content-type: text/plain"
echo
echo "Bad request"
exit 1
fi
exec /usr/bin/curl -0isS "$QUERY_STRING"
Now you can play https://www.foo.bar/baz as
http://localhost/cgi-bin/custom/proxy.cgi?https://www.foo.bar/baz
If you have version 1.7.2 of chumby software or earlier, you might need to add -k to the list of curl options.