The browser and server talk HTTP = Hyper Text Transport Protocol. The word Gateway in CGI refers to it being a way to hook up the webserver with anything else that you want.
In other words the CGI protocol refers only to what is happening on your server.
PS My apologies for responding late. I am on the road and so do not have reliable net access.