$ENV{HTTP_HOST} = 'www.somedomain.com'; $ENV{SCRIPT_NAME} = '/cgi-bin/cgi.pl'; $ENV{PATH_INFO} = '/more/path.html'; $ENV{QUERY_STRING} = 'more=info&here=1'; $ENV{REQUEST_URI} = '/cgi-bin/cgi.pl/more/path.html?more=info&here=1';