The common gateway interface (CGI) is a standard interface between the web server and the application. The user request data will be forwarded to the application and the application may send back the result to the web server. This method or convention for passing data back and forth between the server and the application is called the common gateway interface (CGI). And it is part of the Web's Hypertext Transfer Protocol (HTTP).