From: SourceForge.net <no...@so...> - 2003-07-16 20:23:53
|
Bugs item #714861, was opened at 2003-04-03 14:56 Message generated for change (Comment added) made by mbowler You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=714861&group_id=47038 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: bob neiman (ko6hi) >Assigned to: Mike Bowler (mbowler) Summary: cookie problem - null/no value returned Initial Comment: Trying the attached html, under htmlunit the cookie returns no or a null value. Have tried with latest nighly drop of http-client. http-client trace shows call to set cookie value. with alert(crumbs[0]) the result is "" with alert(crumbs[1] the result is "undefined" Works correctly under IE and Netscape. Using jdk 1.4.1_02 (sun) <html> <body> <script type="text/javascript" Language="javascript"> var expirationTime = new Date(new Date().getTime() + (10*60*1000)); document.cookie = "testcookie" + "=" + "Foo" + ";expires=" + expirationTime.toGMTString(); var cookieSet = document.cookie.split(';'); var setSize = cookieSet.length; var crumbs; var x=0; for (x=0;((x<setSize)); x++) { crumbs = cookieSet[x].split('='); alert ( crumbs[0] ); } </script> This is a test doc </body> </html> ---------------------------------------------------------------------- >Comment By: Mike Bowler (mbowler) Date: 2003-07-16 16:23 Message: Logged In: YES user_id=46756 Query support for Document.cookie has been implemented. Write support still isn't present but I'm going to close this defect for now since it deals specifically with query support. Support for modification hasn't been forgotten. ---------------------------------------------------------------------- Comment By: Mike Bowler (mbowler) Date: 2003-05-27 16:46 Message: Logged In: YES user_id=46756 This is not actually a problem with httpclient (although it has had issues with cookies). The javascript above doesn't work because the cookie attribute hasn't been implemented in HtmlUnit yet. It's on the todo list. ---------------------------------------------------------------------- Comment By: Vera Mickael (mvera) Date: 2003-05-27 12:45 Message: Logged In: YES user_id=787578 I had a little similar problem with httpclient, a patch has been produced, try build a new httpclient.jar from CVS and try again. Mickael ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=714861&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-07-22 17:41:49
|
Bugs item #714861, was opened at 2003-04-03 11:56 Message generated for change (Comment added) made by ko6hi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=714861&group_id=47038 Category: None Group: None Status: Closed Resolution: Fixed Priority: 5 Submitted By: bob neiman (ko6hi) Assigned to: Mike Bowler (mbowler) Summary: cookie problem - null/no value returned Initial Comment: Trying the attached html, under htmlunit the cookie returns no or a null value. Have tried with latest nighly drop of http-client. http-client trace shows call to set cookie value. with alert(crumbs[0]) the result is "" with alert(crumbs[1] the result is "undefined" Works correctly under IE and Netscape. Using jdk 1.4.1_02 (sun) <html> <body> <script type="text/javascript" Language="javascript"> var expirationTime = new Date(new Date().getTime() + (10*60*1000)); document.cookie = "testcookie" + "=" + "Foo" + ";expires=" + expirationTime.toGMTString(); var cookieSet = document.cookie.split(';'); var setSize = cookieSet.length; var crumbs; var x=0; for (x=0;((x<setSize)); x++) { crumbs = cookieSet[x].split('='); alert ( crumbs[0] ); } </script> This is a test doc </body> </html> ---------------------------------------------------------------------- >Comment By: bob neiman (ko6hi) Date: 2003-07-22 10:41 Message: Logged In: YES user_id=212651 Thanks, it works. You guys do good work. ---------------------------------------------------------------------- Comment By: Mike Bowler (mbowler) Date: 2003-07-16 13:23 Message: Logged In: YES user_id=46756 Query support for Document.cookie has been implemented. Write support still isn't present but I'm going to close this defect for now since it deals specifically with query support. Support for modification hasn't been forgotten. ---------------------------------------------------------------------- Comment By: Mike Bowler (mbowler) Date: 2003-05-27 13:46 Message: Logged In: YES user_id=46756 This is not actually a problem with httpclient (although it has had issues with cookies). The javascript above doesn't work because the cookie attribute hasn't been implemented in HtmlUnit yet. It's on the todo list. ---------------------------------------------------------------------- Comment By: Vera Mickael (mvera) Date: 2003-05-27 09:45 Message: Logged In: YES user_id=787578 I had a little similar problem with httpclient, a patch has been produced, try build a new httpclient.jar from CVS and try again. Mickael ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=714861&group_id=47038 |