#!/bin/bash

#DFLT_RHA_COURSE=rha030-2.2
DFLT_RHA_COURSE=rha130-2.2

cat << EOT

!!!!! WARNING: this script is for debugging purposes only. !!!!!"

running this script can change your machine's configuration in weird
ways.  you should only be running this script if you know what you're doing.

EOT



[ $# -gt 2 ] && RHA_COURSE=$3
[ -z $RHA_COURSE ] && RHA_COURSE=$DFLT_RHA_COURSE

URLPARAM="?login=$1&course=$RHA_COURSE&id=$2"

echo "about to run $URLPARAM"
echo
read -p "hit any key to continue (CTRL-C to exit)"


curl "http://rha-server/cgi-bin/rha/exercise$URLPARAM"
