accept both HTTP GET or POST requests