I'm trying to become familiar with cgi-bin web servers on Linux. I know that the cgi binary generally is compiled using g++. In very basic terms, can someone explain the "basics"?
1. How does an html file call the cgi binary?
2. What is the basic structure of the cgi code? Java servlets use send/receive responses/requests? Does cgi do something similar?
3. Why is it popular among webhosts?