I\'m looking at doing some work (for fun) in a compiled language to run some simple tests and benchmarks against php.
Basically I\'d like to see what other people us
If I were thinking of working at that level, I'd probably just write a straight-up Apache or IIS module instead of a CGI.
That said, if you do want to go with CGI, I'd suggest using the venerable cgic from Thomas Boutell. It's a "plain" C library, but it's been in constant use since the mid '90s so it's thoroughly tested and solid as a rock.