access HTTP request parameters?



Hi all,

hope this is the right place to ask for help - some hours of
search engine stressing did not bring any light...

I have a rather complex 3rd party web application using Cookies
for authenticating purposes. Every HTTP request from the user's
browser sends an HTTP request header like "Cookie: session=1234567"
to the server.

One of the application's HTML pages contains an <applet>-Tag causing
the users browser to load an applet. The applet lives in the same
codebase as the web application, i.e. something like this:

<applet code="my.package.Main" archive="applet.jar">
... (some applet params)
</applet>

The "Cookie" header used for authentication is of course also
set in the HTTP request used to load applet.jar to the client.

Is there a way to access the Cookie-Header (or any other HTTP
request header) of the HTTP request that was used to load the
applet's jar file?

I.e. in the applet code I want to do something like this:

public class Main extends JApplet {
public void init() {
System.out.println("Cookie: "+WHATEVER.getRequestParam("Cookie"));
System.out.println("User-Agent: "+WHATEVER.getRequestParam("User-
Agent"));
...
}
}

Is there a really existing way for "WHATEVER.getRequestParam()"?

Thanks for any help
-stefan-
.



Relevant Pages

  • Re: Applets and custom class loaders
    ... applet in which I only want to load a particular class if the corresponding ... applet load is as quick as possible. ... issues a new HTTP request first time the class is needed. ... Class.forNameto load an interface implementation to ...
    (comp.lang.java.gui)
  • Re: access HTTP request parameters?
    ... Is there a way to access the Cookie-Header (or any other HTTP request header) of the HTTP request that was used to load the applet's jar file? ... I haven't really tried but does opening a connection from the applet code goes through the host/browser libraries, therefore cookies being automatically set? ...
    (comp.lang.java.programmer)
  • Re: IIS Slow with little load problem
    ... Tracing on the SQL Server ... Can't you load up a local test HTML page to get the ... Applet running -- in which case, you are dealing with a local filesystem ... > IIS will likely cache access to those class files such that subsequent ...
    (microsoft.public.inetserver.iis)
  • Re: loss of data depending on security permissions
    ... > hosts the Applet. ... You don't need extra security permissions to load a URL from the server ... Save the downloaded image to a file and do a binary compare. ...
    (comp.lang.java.programmer)
  • Site crashes on Empty Applet..????
    ... customized applet I built a year ago that scrolls news items in an applet ... it takes folks 10 sec to 5 minutes to load the ... News items will continually scroll from ... not load for 5 minutes on either browser (of course, ...
    (comp.lang.java.help)