[ 
https://issues.apache.org/jira/browse/CXF-9087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17905556#comment-17905556
 ] 

Andriy Redko commented on CXF-9087:
-----------------------------------

Oh the side not, I would highly recommend you to switch to 3.6.x release line 
(if possible), since it uses JDK's HttpClient client by default and delegates 
cookie management to it.
{quote} 

Content-Length:  0
Host:            localhost:8080
Accept:          */*
User-Agent:      Apache-CXF/3.6.5
Cookie:          a=1; b=2
{quote}

> AbstractClient::cookie method creates incorrect Cookie header
> -------------------------------------------------------------
>
>                 Key: CXF-9087
>                 URL: https://issues.apache.org/jira/browse/CXF-9087
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.5.9
>            Reporter: Dmytro Sylaiev
>            Priority: Minor
>
> When executing this code:
> {noformat}
> WebClient webClient = WebClient.create(url);
> webClient.cookie(new javax.ws.rs.core.Cookie("a", "1"));
> webClient.cookie(new javax.ws.rs.core.Cookie("b", "2"));
> webClient.invoke("GET", null);{noformat}
> the WebClient would invoke an HTTP request with the next Cookie header:
> {noformat}
> Cookie: $Version=1;1=2, $Version=1;2=3{noformat}
> which is against the RFC 6265, where multiple cookies should be separated by 
> a semicolon, not a comma, and doesn't include $Version in the Cookie header
>  
> when using Postman, the header on the client request is
> {noformat}
> Cookie: 1=2; 2=3{noformat}
> and seems it is the expected result for AbstractClient as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to