If you're talking about more advanced settings like "did the client enable cookies?" then you want to do specific tricks usually in Javascript:
For example, to see if they enabled cookies, use javascript to:
1. set a cookie to "enabled=1"
2. read the cookie "enabled".
3. if enabled=1, you can set more cookies, etc.
Main Topics
Browse All Topics





by: moonbeamPosted on 2000-10-03 at 21:59:31ID: 4567779
You can determine (almost) the remote browser agent via the cgi HTTP_USER_AGENT environment varable. This is retrieved in the perl cgi via the ENV hash. eg:
$agent = ENV{"HTTP_USER_AGENT"};
I said "almost", 'cause microsoft in many of it's earlier clients masqeraded as a netscape client.
Other than determining the client, it is not possible to determine the user's "browser settings". You can code javascript code to act differently based on the type and version of the client and even do "somthing different" if the client has javascript turned off. But no
information is returned to the server.
The answer to your second question is "it depends". The suffixs codes are dependant on the configuration of the server. Most servers are configured to understand ".html", "shtml", "htmls", or ".htm". However, there is no reason why you couldn't configure a server to accept all or no filename suffixes.