Try using request instead of CGI...