When a server sends a cookie containing JSON, this is a problem, e.g. the server may send this header: Set-Cookie: x={"Language":"en","Value":10}; expires=Mon, 16-Jul-2018 22:00:00 GMT; path=/ Then on the next request it will send the cookie as: ...; x="{Language:de,Value:10}"; ... This of course fails to parse on the server. (When i tried to work around this problem by setting the cookie manually via script or cookie manager config element, the quotes ended up on the server in escaped form (i.e. with backslash characters before the inner quotes.))
Double quotes (DQUOTES) are not valid in a cookie value according to RFC 6525 (apart around the value). The JMeter Cookie Managers default is to use RFC 6525. You can try to use another Cookie Policy and see, if that helps.
The "netscape" policy works. Thought i had tried changing that but apparently did not. Thanks.
Same issue with double quotes in cookie values. I tried all cookie policies in HTTP Cookie Manager, the thread always failed. Can anyone take a look on issue or give some solutions to resolve this issue?
(In reply to HB from comment #2) > The "netscape" policy works. Thought i had tried changing that but > apparently did not. Thanks. Hi HB, If you resolve this issue at last?
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4671