You need to understand the architecture here.
The browser asks the webserver to do something.
The webserver realizes that to do it it needs to run your
script.
The webserver runs your script (passing it information
through the CGI protocol).
Your script sends the webserver text.
The webserver returns that text to the browser.
The browser does not know the CGI script is there. While
the CGI script may guess there is a browser there, it
doesn't really know that, it only knows about the webserver.
And the operating system only knows how to help the
webserver chatter to the outside world, and that the
webserver can run your script.
So the short answer. The browser can do whatever the
webserver is willing to do on its behalf, and as long as
the webserver can run your script, that includes running
your script. Conversely if you don't want the
browser to do something (like run the Perl interpreter
directly) you need to take that up with the webserver.
(Which is why it is a really bad idea to put perl in your
cgi-bin.) |