cgi param names parser, implemented in c