How can I grab the cookies from a URLConnection and
forward it to via my servlet to a client browser?

//grab cookie from a URLConnection
URLConnection uc;
String name =uc.getHeaderFieldKey("????"); //?????
String value =uc.getHeaderField("????"); //?????

// how can I know that I am getting all the cookies??
// how can I know which ones are session tracking??
//  (Session-Id) is this standard??
//


Cookie c= new Cookie("name","value");
(HttpServletRequest) req.addCookie();


Calvin
Thanks....


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.

___________________________________________________________________________
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