Hari Kishan asks:

> I am having to check if a browser uses 128 bit encryption. Am unable to
> figure out what request header parameters to check for. I have seen
> similar queries in the past on the discussion group, but couldn't find the
> answers.
and also:
> I need to get this working on Netscape Enterprise server and WebSphere
> environment. Any suggestion from past experience would be greatly
> appreciated.

     You need to check for a header named HTTPS_KEYSIZE or
HTTPS_SECRETSIZE, or on some servers HTTPS_SECRETSIZE.  You'll only
see this header when you invoke the servlet through an SSL server.  For
example, in one of my servlets, I have a line that looks like this:

    int httpKeySize = request.getIntHeader("HTTPS_SECRETSIZE");

     In general, for CGI scripting and servlet programming, I find it
useful to keep a script or servlet around that just loops through all
of the environment variables and/or headers and prints them.  Then if
I need to check something, I just invoke that script or servlet and
see what gets sent.  I have a similar one for testing HTML forms.

Steven J. Owens
[EMAIL PROTECTED]
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to