added Referer and Accept headers to CGI environment