Fix CGI URL, add missing parameters.