Cookie cound not be set

"chensong" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Hello,
  I'm a new user to HttpUnit, and I have a problem concerning cookies.

  I trid to test the site http://www.joyo.com via httpunit.
  When visiting the site via IE, a cookie will be set as you visit the page.
I can find the file at "Temporary Internet Files"

  But when using Httpunit, I can't see the file created. Anything I missed?

	    wc = new WebConversation();  
		if (resp == null){
			resp = wc.getResponse("https://www.joyo.com/");	
		}

And also, I use such code, founds cookie values are ok, but why, the file
not created?

		String[] cookies = wc.getCookieNames();	
		String cv;
		for (int j=0;j<cookies.length;j++) {
			cv = wc.getCookieValue(cookies[j]);
			System.out.println(cookies[j] + " : " + cv);
			//(cookies[j], cv);
		}


Thanks

Chen Song


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.