put some common http code in courselist/util.go