The host program or Java bean called from a Web interaction can access browser information through an input parameter. The parameter cannot be linked to an input page field.
At run time, a 100-character string of browser information is passed to the input parameter in the host program or Java bean. The browser information is organized as follows:
Name | Details | |
---|---|---|
AUTHTYPE | Length | 12 |
Description | Returns the servlet's authentication scheme or null if the servlet is not protected | |
Possible values | null/BASIC/DIGEST/FORM/CLIENT-CERT | |
Internal method call | getAuthType() | |
REMOTEUSER | Length | 20 |
Description | Returns the user name making the request, as string or null if access to the servlet is not restricted | |
Possible values | - | |
Internal method call | getRemoteUser() | |
METHOD | Length | 5 |
Description | Returns the HTTP method used to make the request | |
Possible values | GET/POST/HEAD | |
Internal method call | getMethod() | |
PROTOCOL | Length | 10 |
Description | Returns the name and version of the protocol used by the request as protocol/major.minor | |
Possible values | For example, HTTP/1.1 | |
Internal method call | getProtocol() | |
CHARACTERENCODING | Length | 15 |
Description | Returns the charset encoding from the request | |
Possible values | For example, SHIFT_JIS | |
Internal method call | getCharacterEncoding() | |
SCHEME | Length | 5 |
Description | Returns the scheme used to make the request | |
Possible values | HTTP/HTTPS/FTP | |
Internal method call | getScheme() | |
REMOTEADDR | Length | 15 |
Description | Returns the IP addr of the client machine. This comes from the socket connecting the server to the client so the addr may be that of a proxy server | |
Possible values | xxx.xxx.xxx.xxx | |
Internal method call | getRemoteAddr() | |
CLIENTLOCALE | Length | 18 |
Description | Returns the client's preferred locale from the Accept-Language request header. If no such header is provided by the request, the server's default locale is returned | |
Possible values | The format is in the form of language_country_variant. For example, for language = German, country = Germany, and operating system = Windows, the value is de_DE_WIN | |
Internal method call | getLocale().toString() |
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.