ZF-6675: Automatic cookie concatenation (urlencoding) problem
when sending cookies or setting the cookie jar along with existing cookies, while making a request through the http client, by default, url encodes the cookie value. this is done while returning all the cookies in the cookie jar when finally calling the cookie::__toString() method.
some applications including proprietary web applications, accept and compare cookies as it is set and sent back to the server (raw). so while making requests with the http client, the cookie header values being url encoded raises an issue here, simply because a raw value and a urlencoded value will not match. this happens when the cookie value contains literal characters such as *#$%<>, etc.
there could be 4 possibilities to fix this issue.
- to disable url encoding altogether when concat returning the cookie using __toString().
- by allowing an additional optional parameter to be set while setting the cookiejar with the http client that acts as a flag, to disable url encoding.
- by allowing an additional optional parameter while making the request().
- by setting a http client config parameter. eg: disablecookieurlencoding.