Hi all,
I encountered a problem with cookies coming back from Oracle9iAS where
cookies would have leading spaces in the domain portion. For instance,
'domain= .mydomain.com;'. Both IE6 on W2K and Moz 1.6 on W2K and Linux
trim the domain. JMeter doesn't, and then proceeds to store the domain
as '. .mydomain.com' due to the comments in CookieManager (lines
394-396).
Here's a small patch that changes JMeter's behavior to match the
browsers.
Thanks,
Todd
Index:
src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
===================================================================
RCS file:
/home/cvspublic/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java,v
retrieving revision 1.25
diff -u -w -r1.25 CookieManager.java
---
src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java16 Mar
2004 19:48:57 -0000 1.25
+++
src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java18 Mar
2004 20:22:09 -0000
@@ -394,6 +394,7 @@
// The standard dictates domains must have a leading
dot,
// but the new standard (Cookie2) tells us to add it if
it's not
// there:
+ domain = domain.trim();
if (!domain.startsWith("."))
{
domain= "."+domain;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]