On 25/06/2009, Noel O'Brien <[email protected]> wrote: > HI, > > I recently noticed some of my tests failing and after (a lot of :) ) digging > around I found that it was due to the following: > > > 1. An authentication API call has a a Set-Cookie header , the value of > which is Set-Cookie: > SNG_SNS_CRED_PB="kVj/GPnGXUbuPH61YgjU+PWLAvBICyP/fTeQCb9IpXM="; Version=1; > Path="/" > 2. For subsequent calls, the Cookie Manager sends the cookie as Cookie: > SNG_SNS_CRED_PB=kVj/GPnGXUbuPH61YgjU+PWLAvBICyP/fTeQCb9IpXM= (note that it's > now no longer surrounded by double quotes) > 3. Tomcat receives the request and tokenizes the Cookie string based on > "=" , effectively chopping off the last "=" character, which is part of the > cookie an causes the cookie to appear invalid. > > I've tried the same API call over a browser and it works fine (double quotes > are intact). FWIW, I'm using JMeter 2.3.2 and Tomcat 6. I've tried setting > all the different values for Cookie Policy in the Cookie Manager, but none of > them seem to add double quotes to the value of the cookie.
There was a bug in 2.3.2 which meant that the cookie policy was always set to "compatibility". > Is there a setting or workaround for this problem? Might be worth trying 2.3.4. > -- > Regards, > > Noel > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

