[
https://issues.apache.org/jira/browse/HTTPCLIENT-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-1006.
-------------------------------------------
Resolution: Won't Fix
Marc,
When it comes to the HTTP standards HttpClient tries to find a middle ground
between the strict interpretation of the HTTP specification and all the
craziness that common browsers put up with in order to maximize compatibility
with all those broken web sites out there. In this particular case I personally
find consistency between various cookie specs with regards to handling of
quoted values more important. It would be just silly to have the RFC2109 and
RFC2965 specs strip enclosing quotes and the browser compatibility spec retain
them.
You should consider developing a custom cookie spec if you want to simulate the
exact behaviour of a particular browser application.
Oleg
> BrowserCompatSpec: don't trim " around cookie value
> ---------------------------------------------------
>
> Key: HTTPCLIENT-1006
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1006
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpCookie
> Affects Versions: 4.0.2
> Reporter: Marc Guillemot
>
> If the server sends a cookie header like:
> Set-Cookie: first="hello world"
> then HttpClient parses it as cookie with value >hello world<, wrongly
> removing the leading and trailing quotes. The incorrect quote removal occurs
> in BasicHeaderValueParser.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]