[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-users
Subject:    Re: Transferring Cookies
From:       Roland Weber <ROLWEBER () de ! ibm ! com>
Date:       2005-08-29 6:15:02
Message-ID: OF3CABB674.58369130-ONC125706C.0021AEBF-C125706C.0022564B () de ! ibm ! com
[Download RAW message or body]

Hi Ryan,

> The thing is when I make a 
> HttpUrlConnection within the applet I can see that the connection has 
> inherited the cookies from the portal.  Specifically JSESSIONID, etc.
> [...]
> Is this something special that the j2se HttpConnection is doing? 

As far as I know, the browser propagates the session cookies to the
connections opened by the applets on the page. Since browsers (or
Java Plug-ins) do not know about HttpClient, HttpClient remains
ignorant about cookies associated with the applet's web page. We are
in discussions with Sun to extend the Java Plug-in specification...
no we're not, just kidding :-)

> I had to 
> provide a dirty workaround.  I retrieve the cookies using 
> HttpUrlConnection and then set them explicity on my HttpClient.

That isn't dirty. It's the same thing we would have to do in HttpClient
to get to those cookies.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic