La Common Gateway Interface (CGI) è un'interfaccia utilizzata dai server HTTP.

CGI è lo standard industriale che definisce come passare la richiesta del server HTTP al programma e come recuperare la risposta generata.