def GET(self): input = web.input() handler.setFilterCookie(web, input) dumpJson("OK")
def POST(self): input = web.input("path", loc=[]) path = input.path handler.setFilterCookie(web, input) web.seeother(path)