Browser sniffer in C++

You can make a browser sniffer in a C++ program running under CGI by reading the identifying string with

getenv("HTTP_USER_AGENT");

Feel free to copy the class BrowserSniffer from this example.

Run example.

See also instructions for making C++ programs under CGI.

This page was last modified 2008-Dec-08