added cgi header parsing so scripts can set header values