Working code of java application accepting cookies?

I read through the tutorials and I couldn't get the CookieHandler class to work how I intended it to. Can anyone show me some working code of a java application accepting cookies so that it can read a website?
[217 byte] By [bronze-starDukes] at [2007-11-26 12:14:25]
# 1
any help?
bronzestar at 2007-7-7 14:16:56 > top of Java-index,Archived Forums,Socket Programming...
# 2
http://java.sun.com/developer/JDCTechTips/2005/tt0913.html
silverstar at 2007-7-7 14:16:56 > top of Java-index,Archived Forums,Socket Programming...