Just in case anyone else is reading this thread:
RFC 2109 and netscape's
http://home.netscape.com/newsref/std/cookie_spec.html
are two good sources on cookies.
back to the problem:
The issue of passing on the headers of the target url back to
the client seem to be complicated by the fact that
URLConnection.getHeaderFieldKey() and URLConnection.getHeaderField()
return null.
in the servlet:
//
URL url = new URL("http://.../targetServlet");
URLConnection con = url.openConnection();
con.setUseCaches(false);
con.connect();
int i = 0;
while ( (n = getHeaderFieldKey(i)) != null) {
v = getHeaderField(i++);
// do something with n/v
}
//
I know the target is indeed setting cookies, and I don't even
see ANY header info. I must be missing something obvious.
Once again, thanks
mike
On Wed, Jun 07, 2000 at 07:26:35PM +0100, Nic Ferrier wrote:
> >>> Mike Haberman <[EMAIL PROTECTED]> 07-Jun-00 5:51:47 PM >>>
> >nic, thanks a ton for your input!
>
> S'ok.
>
> >Your second suggestion seems to be the answer.
>
> Yes indeed...
>
>
> >Would that be RFC 2616? Do you know of any other
> >sources that discuss specifically the topic at hand?
>
> RFC2109 discusses cookie proposals but Netscape cookies are still
> more popular. You can find lots of info about them on the netscape
> sites (well... you can if you spend enough time surfing through all
> the crap that they have on their site these days).
>
>
> >Also, if I do manage to make it through 2616, should
> >session management work for people who are using
> >mod_perl or some non-servlet way to do sessions/cookies?
>
> I think I know what you're asking:
>
> - if you're asking: would that allow my browser to communicate with
> any server's (mod_perl, servlet, CGI script) session system the answer
> is yes.
>
> - if you're asking: would that allow my servlet to share sessions
> with other servers (mod_perl, etc..) the answer would be no.
>
>
>
> Nic
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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