Looking Out the Window
Most of the functions from the CGI module so far have been to control a browser—like redirect or header—or to process parameters passed to CGI programs—like escape and param. A whole set of functions in the CGI module has been designed to give you information about the system you're currently running on. A partial list is presented in Table 20.1, but for a full list, see the CGI module's online documentation by typing perldoc CGI at a command prompt.
Caution
Most of these functions rely on values that are provided by the Web server or sent by the Web browser in the HTTP protocol. Web browsers can lie about certain values—such as the referer value or user_agent—and Web servers may return inaccurate information sometimes; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access